Struct email_format::Email
[−]
[src]
pub struct Email { /* fields omitted */ }
Methods
impl Email
[src]
fn new<F, D>(from: F, date: D) -> Result<Email, ParseError> where From: TryFrom<F, Err=ParseError>, OrigDate: TryFrom<D, Err=ParseError>
fn set_date<D>(&mut self, date: D) -> Result<(), ParseError> where OrigDate: TryFrom<D, Err=ParseError>
fn get_date(&self) -> OrigDate
fn set_from<F>(&mut self, from: F) -> Result<(), ParseError> where From: TryFrom<F, Err=ParseError>
fn get_from(&self) -> From
fn set_sender<S>(&mut self, sender: S) -> Result<(), ParseError> where Sender: TryFrom<S, Err=ParseError>
fn get_sender(&self) -> Option<Sender>
fn set_reply_to<R>(&mut self, reply_to: R) -> Result<(), ParseError> where ReplyTo: TryFrom<R, Err=ParseError>
fn get_reply_to(&self) -> Option<ReplyTo>
fn set_to<T>(&mut self, to: T) -> Result<(), ParseError> where To: TryFrom<T, Err=ParseError>
fn get_to(&self) -> Option<To>
fn set_cc<C>(&mut self, cc: C) -> Result<(), ParseError> where Cc: TryFrom<C, Err=ParseError>
fn get_cc(&self) -> Option<Cc>
fn set_bcc<B>(&mut self, bcc: B) -> Result<(), ParseError> where Bcc: TryFrom<B, Err=ParseError>
fn get_bcc(&self) -> Option<Bcc>
fn set_message_id<M>(&mut self, message_id: M) -> Result<(), ParseError> where MessageId: TryFrom<M, Err=ParseError>
fn get_message_id(&self) -> Option<MessageId>
fn set_in_reply_to<I>(&mut self, in_reply_to: I) -> Result<(), ParseError> where InReplyTo: TryFrom<I, Err=ParseError>
fn get_in_reply_to(&self) -> Option<InReplyTo>
fn set_references<R>(&mut self, references: R) -> Result<(), ParseError> where References: TryFrom<R, Err=ParseError>
fn get_references(&self) -> Option<References>
fn set_subject<S>(&mut self, subject: S) -> Result<(), ParseError> where Subject: TryFrom<S, Err=ParseError>
fn get_subject(&self) -> Option<Subject>
fn add_comments<C>(&mut self, comments: C) -> Result<(), ParseError> where Comments: TryFrom<C, Err=ParseError>
fn get_comments(&self) -> Vec<Comments>
fn add_keywords<K>(&mut self, keywords: K) -> Result<(), ParseError> where Keywords: TryFrom<K, Err=ParseError>
fn get_keywords(&self) -> Vec<Keywords>
fn add_optional_field<O>(&mut self, optional_field: O) -> Result<(), ParseError> where OptionalField: TryFrom<O, Err=ParseError>
fn get_optional_fields(&self) -> Vec<OptionalField>
fn set_body<B>(&mut self, body: B) -> Result<(), ParseError> where Body: TryFrom<B, Err=ParseError>
fn get_body(&self) -> Option<Body>
Trait Implementations
impl Debug for Email
[src]
impl Clone for Email
[src]
fn clone(&self) -> Email
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Parsable for Email
[src]
fn parse(input: &[u8]) -> Result<(Self, &[u8]), ParseError>
Parse the object off of the beginning of the input
. If found, returns Some object, and a slice containing the remainer of the input. Read more
impl Streamable for Email
[src]
fn stream<W: Write>(&self, w: &mut W) -> Result<usize, IoError>
Serializes and sends the content out to w
, returning the number of bytes written.