mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-23 13:59:21 +00:00
22 lines
509 B
Rust
22 lines
509 B
Rust
|
//! # Create conversation result
|
||
|
//!
|
||
|
//! @author Pierre Hubert
|
||
|
|
||
|
use serde::{Serialize};
|
||
|
|
||
|
#[derive(Serialize)]
|
||
|
#[allow(non_snake_case)]
|
||
|
pub struct ResCreateConversation {
|
||
|
conversationID: u64,
|
||
|
success: String,
|
||
|
}
|
||
|
|
||
|
impl ResCreateConversation {
|
||
|
/// Construct a new Result instance
|
||
|
pub fn new(conv_id: u64) -> ResCreateConversation {
|
||
|
ResCreateConversation {
|
||
|
conversationID: conv_id,
|
||
|
success: "The conversation was successfully created!".to_string(),
|
||
|
}
|
||
|
}
|
||
|
}
|