Struct smtpapi::Filter
[−]
[src]
pub struct Filter { /* fields omitted */ }
Methods
impl Filter
[src]
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>,
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());
Trait Implementations
impl Decodable for Filter
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Filter, __D::Error>
Deserialize a value using a Decoder
.
impl Encodable for Filter
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
impl Debug for Filter
[src]
impl Clone for Filter
[src]
fn clone(&self) -> Filter
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more