Struct jmap_client::identity::Identity
source · [−]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
sourceimpl 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
sourceimpl 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 Selfwhere
T: Iterator<Item = U>,
U: Into<EmailAddress>,
pub fn reply_to<T, U>(&mut self, reply_to: Option<T>) -> &mut Selfwhere
T: Iterator<Item = U>,
U: Into<EmailAddress>,
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
sourceimpl ChangesObject for Identity<Get>
impl ChangesObject for Identity<Get>
type ChangesResponse = ()
sourceimpl ChangesObject for Identity<Set>
impl ChangesObject for Identity<Set>
type ChangesResponse = ()
sourceimpl<'de, State> Deserialize<'de> for Identity<State>
impl<'de, State> Deserialize<'de> for Identity<State>
sourcefn 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> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more