Struct smtpapi::Filter
[−]
[src]
pub struct Filter { // some fields omitted }
Methods
impl Filter
fn new() -> Filter
Constructs a new Filter
.
Examples
use smtpapi::{Filter}; let filter = Filter::new(); println!("{}", filter.to_string());
fn add_setting<S>(&mut self, setting: S, value: S) -> &mut Filter where S: Into<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());
fn to_string(&self) -> String
Returns the JSON String reprezentation of Filter
.
Examples
use smtpapi::{Filter}; let filter = Filter::new(); println!("{}", filter.to_string());