Struct smtpapi::Filter [] [src]

pub struct Filter { /* fields omitted */ }

Methods

impl Filter
[src]

Constructs a new Filter.

Examples

use smtpapi::{Filter};

let filter = Filter::new();
println!("{}", filter.to_string());

Add settings for a Filter.

Examples

use smtpapi::{Filter};

let mut filter = Filter::new();
filter.add_setting("enabled", "1");
filter.add_setting("text", "some text");

println!("{}", filter.to_string());

Returns the JSON String reprezentation of Filter.

Examples

use smtpapi::{Filter};

let filter = Filter::new();
println!("{}", filter.to_string());

Trait Implementations

impl Decodable for Filter
[src]

Deserialize a value using a Decoder.

impl Encodable for Filter
[src]

Serialize a value using an Encoder.

impl Debug for Filter
[src]

Formats the value using the given formatter.

impl Clone for Filter
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Filter
[src]

Formats the value using the given formatter. Read more

impl Drop for Filter
[src]

A method called when the value goes out of scope. Read more

impl ToJson for Filter
[src]

Converts the value of self to an instance of JSON