pub struct Identity {
pub name: BString,
pub email: BString,
}
Expand description
A person with name and email.
Fields§
§name: BString
The actors name.
email: BString
The actor’s email.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Identity
impl<'de> Deserialize<'de> for Identity
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<'a> From<&'a Identity> for IdentityRef<'a>
impl<'a> From<&'a Identity> for IdentityRef<'a>
Source§fn from(other: &'a Identity) -> IdentityRef<'a>
fn from(other: &'a Identity) -> IdentityRef<'a>
Converts to this type from the input type.
Source§impl From<IdentityRef<'_>> for Identity
impl From<IdentityRef<'_>> for Identity
Source§fn from(other: IdentityRef<'_>) -> Identity
fn from(other: IdentityRef<'_>) -> Identity
Converts to this type from the input type.
Source§impl Ord for Identity
impl Ord for Identity
Source§impl PartialOrd for Identity
impl PartialOrd for Identity
impl Eq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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