mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 16:35:17 +00:00
Can get the list of memberships of a user
This commit is contained in:
@ -24,4 +24,5 @@ pub mod movie;
|
||||
pub mod survey;
|
||||
pub mod comment;
|
||||
pub mod new_survey;
|
||||
pub mod notification;
|
||||
pub mod notification;
|
||||
pub mod user_membership;
|
13
src/data/user_membership.rs
Normal file
13
src/data/user_membership.rs
Normal file
@ -0,0 +1,13 @@
|
||||
//! # User membership
|
||||
//!
|
||||
//! @author Pierre Hubert
|
||||
|
||||
use crate::data::friend::Friend;
|
||||
use crate::data::conversation::Conversation;
|
||||
use crate::data::group_id::GroupID;
|
||||
|
||||
pub enum UserMembership {
|
||||
Group(GroupID, u64),
|
||||
Friend(Friend),
|
||||
Conversation(Conversation)
|
||||
}
|
Reference in New Issue
Block a user