Struct jmap_client::email::Header
source · pub struct Header {
pub name: String,
pub form: HeaderForm,
pub all: bool,
}Fields§
§name: String§form: HeaderForm§all: boolImplementations§
source§impl Header
impl Header
pub fn as_raw(name: impl Into<String>, all: bool) -> Header
pub fn as_text(name: impl Into<String>, all: bool) -> Header
pub fn as_addresses(name: impl Into<String>, all: bool) -> Header
pub fn as_grouped_addresses(name: impl Into<String>, all: bool) -> Header
pub fn as_message_ids(name: impl Into<String>, all: bool) -> Header
pub fn as_date(name: impl Into<String>, all: bool) -> Header
pub fn as_urls(name: impl Into<String>, all: bool) -> Header
pub fn parse(value: &str) -> Option<Header>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
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 Ord for Header
impl Ord for Header
source§impl PartialEq for Header
impl PartialEq for Header
source§impl PartialOrd for Header
impl PartialOrd for Header
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Header
impl StructuralEq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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
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.