pub struct UserRecipient { /* private fields */ }Expand description
Represents metadata for a user who was displayed a message.
Implementations§
Source§impl UserRecipient
impl UserRecipient
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new UserRecipient.
Source§impl UserRecipient
impl UserRecipient
Sourcepub const fn id(&self) -> u64
pub const fn id(&self) -> u64
Gets the UserRecipient id.
Sourcepub fn set_id(&mut self, val: u64)
pub fn set_id(&mut self, val: u64)
Sets the UserRecipient id.
Sourcepub fn with_id(self, val: u64) -> Self
pub fn with_id(self, val: u64) -> Self
Builder function that sets the UserRecipient id.
Sourcepub const fn is_mirror_dummy(&self) -> bool
pub const fn is_mirror_dummy(&self) -> bool
Gets the UserRecipient is_mirror_dummy.
Sourcepub fn set_is_mirror_dummy(&mut self, val: bool)
pub fn set_is_mirror_dummy(&mut self, val: bool)
Sets the UserRecipient is_mirror_dummy.
Sourcepub fn with_is_mirror_dummy(self, val: bool) -> Self
pub fn with_is_mirror_dummy(self, val: bool) -> Self
Builder function that sets the UserRecipient is_mirror_dummy.
Source§impl UserRecipient
impl UserRecipient
Sourcepub fn email(&self) -> &str
pub fn email(&self) -> &str
Gets the UserRecipient email.
Sourcepub fn with_email<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_email<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the UserRecipient email.
Sourcepub fn full_name(&self) -> &str
pub fn full_name(&self) -> &str
Gets the UserRecipient full_name.
Sourcepub fn set_full_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_full_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the UserRecipient full_name.
Sourcepub fn with_full_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_full_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the UserRecipient full_name.
Trait Implementations§
Source§impl Clone for UserRecipient
impl Clone for UserRecipient
Source§impl Debug for UserRecipient
impl Debug for UserRecipient
Source§impl Default for UserRecipient
impl Default for UserRecipient
Source§impl<'de> Deserialize<'de> for UserRecipient
impl<'de> Deserialize<'de> for UserRecipient
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 Display for UserRecipient
impl Display for UserRecipient
impl Eq for UserRecipient
Source§impl PartialEq for UserRecipient
impl PartialEq for UserRecipient
Source§impl Serialize for UserRecipient
impl Serialize for UserRecipient
impl StructuralPartialEq for UserRecipient
Auto Trait Implementations§
impl Freeze for UserRecipient
impl RefUnwindSafe for UserRecipient
impl Send for UserRecipient
impl Sync for UserRecipient
impl Unpin for UserRecipient
impl UnsafeUnpin for UserRecipient
impl UnwindSafe for UserRecipient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.