pub enum GroupActivityEvent<T> {
Activity(T),
UpdateGroup(GroupInfo),
SetIdentity(IdentityInfo),
LeaveGroup {
message: Option<String>,
},
AssignRole {
target: IdentityRef,
role: GroupRole,
},
RemoveFromGroup {
target: IdentityRef,
},
Unknown {
discriminant: u32,
data: Vec<u8>,
},
}Variants§
Activity(T)
UpdateGroup(GroupInfo)
Update group metadata (name, description, settings)
SetIdentity(IdentityInfo)
Set identity information for the sending identity
LeaveGroup
Announce departure from group
AssignRole
Assign a role to an identity (key or key+alias)
Requires appropriate permissions based on group settings.
RemoveFromGroup
Fields
§
target: IdentityRefThe identity to remove
Unknown
Unknown management event for forward compatibility
Trait Implementations§
Source§impl<T: Clone> Clone for GroupActivityEvent<T>
impl<T: Clone> Clone for GroupActivityEvent<T>
Source§fn clone(&self) -> GroupActivityEvent<T>
fn clone(&self) -> GroupActivityEvent<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for GroupActivityEvent<T>
impl<T: Debug> Debug for GroupActivityEvent<T>
Source§impl<'de, T> Deserialize<'de> for GroupActivityEvent<T>where
T: DeserializeOwned,
impl<'de, T> Deserialize<'de> for GroupActivityEvent<T>where
T: DeserializeOwned,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: PartialEq> PartialEq for GroupActivityEvent<T>
impl<T: PartialEq> PartialEq for GroupActivityEvent<T>
Source§impl<T> Serialize for GroupActivityEvent<T>where
T: Serialize,
impl<T> Serialize for GroupActivityEvent<T>where
T: Serialize,
impl<T> StructuralPartialEq for GroupActivityEvent<T>
Auto Trait Implementations§
impl<T> Freeze for GroupActivityEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for GroupActivityEvent<T>where
T: RefUnwindSafe,
impl<T> Send for GroupActivityEvent<T>where
T: Send,
impl<T> Sync for GroupActivityEvent<T>where
T: Sync,
impl<T> Unpin for GroupActivityEvent<T>where
T: Unpin,
impl<T> UnwindSafe for GroupActivityEvent<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more