Trait gmime::TextPartExt[][src]

pub trait TextPartExt {
    fn get_charset(&self) -> Option<String>;
fn get_text(&self) -> Option<String>;
fn set_charset(&self, charset: &str);
fn set_text(&self, text: &str); }

Trait containing all TextPart methods.

Implementors

TextPart

Required Methods

Gets the value of the charset parameter on the Content-Type header.

Returns

the value of the charset parameter or None if unavailable.

Gets the text content of the self as a string.

Returns

a newly allocated string containing the utf-8 encoded text content.

Sets the charset parameter on the Content-Type header to the specified value.

charset

the name of the charset

Sets the specified text as the content and updates the charset parameter on the Content-Type header.

text

the text in utf-8

Implementors