Struct gmime::FormatOptions[]

pub struct FormatOptions(_);

Format options for serializing various GMime objects.

Methods

impl FormatOptions
[src]

Creates a new set of FormatOptions.

Returns

a newly allocated set of FormatOptions with the default values.

Adds the given header to the list of headers that should be hidden.

a header name

Clears the list of headers that should be hidden.

Clones a FormatOptions.

Returns

a newly allocated FormatOptions.

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.

Gets a string representing the currently set new-line format.

Returns

a new-line character sequence.

Gets the new-line format to use when writing out messages and headers.

Returns

the new-line format that is currently set.

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.

Removes the given header from the list of headers that should be hidden.

header

a header name

Sets the new-line format that should be used when writing headers and messages.

newline

a NewLineFormat

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

Gets the default format options.

Returns

the default format options.

Trait Implementations

impl Clone for FormatOptions

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for FormatOptions

Formats the value using the given formatter. Read more

impl StaticType for FormatOptions

Returns the type identifier of Self.

impl Default for FormatOptions
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl !Send for FormatOptions

impl !Sync for FormatOptions