Struct gmime::FormatOptions [−]
pub struct FormatOptions(_);
Format options for serializing various GMime objects.
Methods
impl FormatOptions[src]
impl FormatOptionspub fn new() -> FormatOptions[src]
pub fn new() -> FormatOptionsCreates a new set of FormatOptions.
Returns
a newly allocated set of FormatOptions with the default values.
Clears the list of headers that should be hidden.
pub fn clone(&mut self) -> Option<FormatOptions>[src]
pub fn clone(&mut self) -> Option<FormatOptions>pub fn create_newline_filter(&mut self, ensure_newline: bool) -> Option<Filter>[src]
pub fn create_newline_filter(&mut self, ensure_newline: bool) -> Option<Filter>Creates a Filter suitable for converting line-endings to the
currently set new-line format.
ensure_newline
true if the output must always end with a new line
Returns
a Filter to convert to the specified new-line format.
pub fn get_newline(&mut self) -> Option<String>[src]
pub fn get_newline(&mut self) -> Option<String>Gets a string representing the currently set new-line format.
Returns
a new-line character sequence.
pub fn get_newline_format(&mut self) -> NewLineFormat[src]
pub fn get_newline_format(&mut self) -> NewLineFormatGets the new-line format to use when writing out messages and headers.
Returns
the new-line format that is currently set.
pub fn get_param_encoding_method(&mut self) -> ParamEncodingMethod[src]
pub fn get_param_encoding_method(&mut self) -> ParamEncodingMethodGets the parameter encoding method to use for Param parameters that do not
already have an encoding method specified.
Returns
the encoding method that is currently set.
Gets whether or not the specified header should be hidden.
header
the name of a header
Returns
true if the header should be hidden or false otherwise.
pub fn set_newline_format(&mut self, newline: NewLineFormat)[src]
pub fn set_newline_format(&mut self, newline: NewLineFormat)Sets the new-line format that should be used when writing headers and messages.
newline
a NewLineFormat
pub fn set_param_encoding_method(&mut self, method: ParamEncodingMethod)[src]
pub fn set_param_encoding_method(&mut self, method: ParamEncodingMethod)Sets the parameter encoding method to use when encoding parameters which do not have an encoding method specified.
Note: ParamEncodingMethod::Default is not allowed.
method
a ParamEncodingMethod
pub fn get_default() -> Option<FormatOptions>[src]
pub fn get_default() -> Option<FormatOptions>Trait Implementations
impl Clone for FormatOptions
impl Clone for FormatOptionsfn clone(&self) -> FormatOptions
fn clone(&self) -> FormatOptionsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for FormatOptions
impl Debug for FormatOptionsfn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl StaticType for FormatOptions
impl StaticType for FormatOptionsfn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
impl Default for FormatOptions[src]
impl Default for FormatOptionsAuto Trait Implementations
impl !Send for FormatOptions
impl !Send for FormatOptionsimpl !Sync for FormatOptions
impl !Sync for FormatOptions