pub enum ProfileAction {
Create {
owner: UserId,
profile: AuthorizationProfile,
},
CreateNamed {
owner: UserId,
name: ProfileName,
profile: AuthorizationProfile,
},
Replace {
profile_id: ProfileId,
actor: UserId,
profile: AuthorizationProfile,
},
Delete {
profile_id: ProfileId,
actor: UserId,
},
Rename {
profile_id: ProfileId,
actor: UserId,
name: ProfileName,
},
}Expand description
A requested mutation to the saved-profile collection.
The original unnamed Create, Replace, and Delete schemas are retained
exactly. Named creation and rename are additive variants.
Variants§
Create
Creates a profile through the compatibility unnamed path.
CreateNamed
Creates a profile with an explicit validated name.
Replace
Replaces the authorization value without changing identity or name.
Delete
Deletes a profile.
Rename
Changes only a profile’s name.
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