pub enum ProfileAction {
Create {
owner: UserId,
profile: AuthorizationProfile,
},
CreateNamed {
owner: UserId,
name: ProfileName,
profile: AuthorizationProfile,
},
CreateNamedColored {
owner: UserId,
name: ProfileName,
color: Option<ProfileColor>,
profile: AuthorizationProfile,
},
Replace {
profile_id: ProfileId,
actor: UserId,
profile: AuthorizationProfile,
},
Delete {
profile_id: ProfileId,
actor: UserId,
},
Rename {
profile_id: ProfileId,
actor: UserId,
name: ProfileName,
},
SetColor {
profile_id: ProfileId,
actor: UserId,
color: Option<ProfileColor>,
},
}Variants§
Trait Implementations§
Source§impl Clone for ProfileAction
impl Clone for ProfileAction
Source§fn clone(&self) -> ProfileAction
fn clone(&self) -> ProfileAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileAction
impl Debug for ProfileAction
impl Eq for ProfileAction
Source§impl PartialEq for ProfileAction
impl PartialEq for ProfileAction
impl StructuralPartialEq for ProfileAction
Auto Trait Implementations§
impl Freeze for ProfileAction
impl RefUnwindSafe for ProfileAction
impl Send for ProfileAction
impl Sync for ProfileAction
impl Unpin for ProfileAction
impl UnsafeUnpin for ProfileAction
impl UnwindSafe for ProfileAction
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