pub enum IdentityOperationData {
Create {
name: String,
},
SetName {
name: String,
},
SetEmail {
email: String,
},
SetLoginName {
login_name: String,
},
SetAvatarUrl {
url: Url,
},
SetMetadata {
metadata: Vec<(String, String)>,
},
}Expand description
The operations available on an Identity.
Variants§
Create
Creating an user.
SetName
Setting the user’s name.
SetEmail
Setting the user’s email address.
SetLoginName
Setting the user’s login name.
SetAvatarUrl
Setting the URL to the user’s avatar.
SetMetadata
Setting metadata.
Trait Implementations§
Source§impl Clone for IdentityOperationData
impl Clone for IdentityOperationData
Source§fn clone(&self) -> IdentityOperationData
fn clone(&self) -> IdentityOperationData
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 Debug for IdentityOperationData
impl Debug for IdentityOperationData
Source§impl<'de> Deserialize<'de> for IdentityOperationData
impl<'de> Deserialize<'de> for IdentityOperationData
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 OperationData for IdentityOperationData
impl OperationData for IdentityOperationData
Source§type DecodeError = Error
type DecodeError = Error
The returned error, when the operation data cannot be parsed from the
stored JSON value.
Source§fn from_value(
raw: Value,
predicted_type: u64,
) -> Result<Self, Self::DecodeError>where
Self: Sized,
fn from_value(
raw: Value,
predicted_type: u64,
) -> Result<Self, Self::DecodeError>where
Self: Sized,
Parses the stored JSON object as operation data. Read more
Source§fn to_json_type(&self) -> u64
fn to_json_type(&self) -> u64
Get an unique integer for each valid operation. Read more
Auto Trait Implementations§
impl Freeze for IdentityOperationData
impl RefUnwindSafe for IdentityOperationData
impl Send for IdentityOperationData
impl Sync for IdentityOperationData
impl Unpin for IdentityOperationData
impl UnwindSafe for IdentityOperationData
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