Trait gmime::TextPartExt [−][src]
Required Methods
fn get_charset(&self) -> Option<String>
[−]
Gets the value of the charset parameter on the Content-Type header.
Returns
the value of the charset parameter or None
if unavailable.
fn get_text(&self) -> Option<String>
[−]
Gets the text content of the self
as a string.
Returns
a newly allocated string containing the utf-8 encoded text content.
fn set_charset(&self, charset: &str)
[−]
Sets the charset parameter on the Content-Type header to the specified value.
charset
the name of the charset
fn set_text(&self, text: &str)
[−]
Sets the specified text as the content and updates the charset parameter on the Content-Type header.
text
the text in utf-8
Implementors
impl<O: IsA<TextPart>> TextPartExt for O