1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-02-07 01:37:05 +00:00
comunicapiv3/src/api_data/res_create_conversation_for_group.rs

20 lines
403 B
Rust
Raw Normal View History

2021-04-03 19:00:18 +02:00
//! # Conversation for group creation result
//!
//! This structure returns the ID of the create conversation
use serde::Serialize;
use crate::data::conversation::ConvID;
#[derive(Serialize)]
pub struct ResCreateConversationForGroup {
conv_id: u64
}
impl ResCreateConversationForGroup {
pub fn new(conv_id: ConvID) -> Self {
Self {
conv_id: conv_id.id()
}
}
}