Struct gmime::FormatOptions [−]
pub struct FormatOptions(_);
Format options for serializing various GMime objects.
Methods
impl FormatOptions
[src]
impl FormatOptions
pub fn new() -> FormatOptions
[src]
pub fn new() -> FormatOptions
Creates 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) -> NewLineFormat
Gets 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) -> ParamEncodingMethod
Gets 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 FormatOptions
fn clone(&self) -> FormatOptions
fn clone(&self) -> FormatOptions
Returns 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 FormatOptions
fn fmt(&self, __arg_0: &mut Formatter) -> Result
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StaticType for FormatOptions
impl StaticType for FormatOptions
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Default for FormatOptions
[src]
impl Default for FormatOptions
Auto Trait Implementations
impl !Send for FormatOptions
impl !Send for FormatOptions
impl !Sync for FormatOptions
impl !Sync for FormatOptions