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>

source

pub fn id(&self) -> Option<&str>

source

pub fn take_id(&mut self) -> String

source

pub fn name(&self) -> Option<&str>

source

pub fn email(&self) -> Option<&str>

source

pub fn reply_to(&self) -> Option<&[EmailAddress]>

source

pub fn bcc(&self) -> Option<&[EmailAddress]>

source

pub fn text_signature(&self) -> Option<&str>

source

pub fn html_signature(&self) -> Option<&str>

source

pub fn may_delete(&self) -> bool

source§

impl Identity<Set>

source

pub fn name(&mut self, name: impl Into<String>) -> &mut Self

source

pub fn email(&mut self, email: impl Into<String>) -> &mut Self

source

pub fn bcc<T, U>(&mut self, bcc: Option<T>) -> &mut Self
where T: Iterator<Item = U>, U: Into<EmailAddress>,

source

pub fn reply_to<T, U>(&mut self, reply_to: Option<T>) -> &mut Self
where T: Iterator<Item = U>, U: Into<EmailAddress>,

source

pub fn text_signature(&mut self, text_signature: impl Into<String>) -> &mut Self

source

pub fn html_signature(&mut self, html_signature: impl Into<String>) -> &mut Self

Trait Implementations§

source§

impl ChangesObject for Identity<Get>

source§

impl ChangesObject for Identity<Set>

source§

impl<State: Clone> Clone for Identity<State>

source§

fn clone(&self) -> Identity<State>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<State: Debug> Debug for Identity<State>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, State> Deserialize<'de> for Identity<State>

source§

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 GetObject for Identity<Get>

source§

impl GetObject for Identity<Set>

source§

impl Object for Identity<Get>

source§

impl Object for Identity<Set>

source§

impl<State> Serialize for Identity<State>

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl SetObject for Identity<Get>

§

type SetArguments = ()

source§

fn new(_create_id: Option<usize>) -> Self

source§

fn create_id(&self) -> Option<String>

source§

impl SetObject for Identity<Set>

§

type SetArguments = ()

source§

fn new(_create_id: Option<usize>) -> Self

source§

fn create_id(&self) -> Option<String>

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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,