pub struct Identity<State = Get> {
pub id: Option<String>,
pub name: Option<String>,
pub email: Option<String>,
pub reply_to: Option<Vec<EmailAddress>>,
pub bcc: Option<Vec<EmailAddress>>,
pub text_signature: Option<String>,
pub html_signature: Option<String>,
pub may_delete: Option<bool>,
/* private fields */
}
Fields§
§id: Option<String>
§name: Option<String>
§email: Option<String>
§reply_to: Option<Vec<EmailAddress>>
§bcc: Option<Vec<EmailAddress>>
§text_signature: Option<String>
§html_signature: Option<String>
§may_delete: Option<bool>
Implementations§
Source§impl Identity<Get>
impl Identity<Get>
pub fn id(&self) -> Option<&str>
pub fn take_id(&mut self) -> String
pub fn name(&self) -> Option<&str>
pub fn email(&self) -> Option<&str>
pub fn reply_to(&self) -> Option<&[EmailAddress]>
pub fn bcc(&self) -> Option<&[EmailAddress]>
pub fn text_signature(&self) -> Option<&str>
pub fn html_signature(&self) -> Option<&str>
pub fn may_delete(&self) -> bool
Source§impl Identity<Set>
impl Identity<Set>
pub fn name(&mut self, name: impl Into<String>) -> &mut Self
pub fn email(&mut self, email: impl Into<String>) -> &mut Self
pub fn bcc<T, U>(&mut self, bcc: Option<T>) -> &mut Self
pub fn reply_to<T, U>(&mut self, reply_to: Option<T>) -> &mut Self
pub fn text_signature(&mut self, text_signature: impl Into<String>) -> &mut Self
pub fn html_signature(&mut self, html_signature: impl Into<String>) -> &mut Self
Trait Implementations§
Source§impl ChangesObject for Identity<Get>
impl ChangesObject for Identity<Get>
type ChangesResponse = ()
Source§impl ChangesObject for Identity<Set>
impl ChangesObject for Identity<Set>
type ChangesResponse = ()
Source§impl<'de, State> Deserialize<'de> for Identity<State>
impl<'de, State> Deserialize<'de> for Identity<State>
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
Auto Trait Implementations§
impl<State> Freeze for Identity<State>
impl<State> RefUnwindSafe for Identity<State>where
State: RefUnwindSafe,
impl<State> Send for Identity<State>where
State: Send,
impl<State> Sync for Identity<State>where
State: Sync,
impl<State> Unpin for Identity<State>where
State: Unpin,
impl<State> UnwindSafe for Identity<State>where
State: UnwindSafe,
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