pub enum GroupAction<ID, C> {
Create {
initial_members: Vec<(GroupMember<ID>, Access<C>)>,
},
Add {
member: GroupMember<ID>,
access: Access<C>,
},
Remove {
member: GroupMember<ID>,
},
Promote {
member: GroupMember<ID>,
access: Access<C>,
},
Demote {
member: GroupMember<ID>,
access: Access<C>,
},
}Expand description
Actions for creating groups and modifying group membership.
Variants§
Create
Fields
§
initial_members: Vec<(GroupMember<ID>, Access<C>)>Add
Remove
Fields
§
member: GroupMember<ID>Promote
Demote
Implementations§
Trait Implementations§
Source§impl<ID: Clone, C: Clone> Clone for GroupAction<ID, C>
impl<ID: Clone, C: Clone> Clone for GroupAction<ID, C>
Source§fn clone(&self) -> GroupAction<ID, C>
fn clone(&self) -> GroupAction<ID, C>
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<'de, ID, C> Deserialize<'de> for GroupAction<ID, C>where
ID: Deserialize<'de>,
C: Deserialize<'de>,
impl<'de, ID, C> Deserialize<'de> for GroupAction<ID, C>where
ID: Deserialize<'de>,
C: Deserialize<'de>,
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<ID, C> Serialize for GroupAction<ID, C>
impl<ID, C> Serialize for GroupAction<ID, C>
impl<ID: Eq, C: Eq> Eq for GroupAction<ID, C>
impl<ID, C> StructuralPartialEq for GroupAction<ID, C>
Auto Trait Implementations§
impl<ID, C> Freeze for GroupAction<ID, C>
impl<ID, C> RefUnwindSafe for GroupAction<ID, C>where
ID: RefUnwindSafe,
C: RefUnwindSafe,
impl<ID, C> Send for GroupAction<ID, C>
impl<ID, C> Sync for GroupAction<ID, C>
impl<ID, C> Unpin for GroupAction<ID, C>
impl<ID, C> UnwindSafe for GroupAction<ID, C>where
ID: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.