#[non_exhaustive]pub struct Identity {
pub id: Id,
pub name: String,
pub email: String,
pub reply_to: Option<Vec<EmailAddress>>,
pub bcc: Option<Vec<EmailAddress>>,
pub text_signature: String,
pub html_signature: String,
pub may_delete: bool,
}Expand description
An RFC 8621 §6 Identity object.
Stores information about an email address or domain the user may send from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: IdThe id of the Identity (immutable; server-set).
name: StringThe “From” name the client SHOULD use when creating a new Email
from this Identity. Defaults to "".
email: StringThe “From” email address the client MUST use (immutable).
reply_to: Option<Vec<EmailAddress>>The Reply-To value the client SHOULD set. null if not set.
bcc: Option<Vec<EmailAddress>>The Bcc value the client SHOULD set. null if not set.
text_signature: StringPlaintext signature. Defaults to "".
html_signature: StringHTML snippet signature. Defaults to "".
may_delete: boolWhether the user may delete this Identity (server-set).
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 JmapObject for Identity
impl JmapObject for Identity
impl Eq for Identity
impl GetObject 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 UnsafeUnpin 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