mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-02-18 06:52:39 +00:00
23 lines
482 B
Rust
23 lines
482 B
Rust
|
//! # Removed user from conversation message
|
||
|
//!
|
||
|
//! @author Pierre Hubert
|
||
|
|
||
|
use serde::Serialize;
|
||
|
|
||
|
use crate::data::conversation::ConvID;
|
||
|
use crate::data::user::UserID;
|
||
|
|
||
|
#[derive(Serialize)]
|
||
|
pub struct RemovedUserFromConversationMessage {
|
||
|
user_id: u64,
|
||
|
conv_id: u64,
|
||
|
}
|
||
|
|
||
|
impl RemovedUserFromConversationMessage {
|
||
|
pub fn new(user_id: &UserID, conv_id: ConvID) -> Self {
|
||
|
Self {
|
||
|
user_id: user_id.id(),
|
||
|
conv_id: conv_id.id(),
|
||
|
}
|
||
|
}
|
||
|
}
|