Struct orm::Cond
[−]
[src]
pub struct Cond { /* fields omitted */ }
Methods
impl Cond
[src]
pub fn new() -> Self
[src]
pub fn by_id<V>(id: V) -> Self where
Value: From<V>,
[src]
Value: From<V>,
pub fn by_eq<V>(field: &str, value: V) -> Self where
Value: From<V>,
[src]
Value: From<V>,
pub fn by_ne<V>(field: &str, value: V) -> Self where
Value: From<V>,
[src]
Value: From<V>,
pub fn by_gt<V>(field: &str, value: V) -> Self where
Value: From<V>,
[src]
Value: From<V>,
pub fn by_lt<V>(field: &str, value: V) -> Self where
Value: From<V>,
[src]
Value: From<V>,
impl Cond
[src]
ⓘImportant traits for &'a mut Wpub fn id<V>(&mut self, id: V) -> &mut Self where
Value: From<V>,
[src]
ⓘImportant traits for &'a mut W
Value: From<V>,
ⓘImportant traits for &'a mut Wpub fn eq<V>(&mut self, field: &str, value: V) -> &mut Self where
Value: From<V>,
[src]
ⓘImportant traits for &'a mut W
Value: From<V>,
ⓘImportant traits for &'a mut Wpub fn ne<V>(&mut self, field: &str, value: V) -> &mut Self where
Value: From<V>,
[src]
ⓘImportant traits for &'a mut W
Value: From<V>,
ⓘImportant traits for &'a mut Wpub fn gt<V>(&mut self, field: &str, value: V) -> &mut Self where
Value: From<V>,
[src]
ⓘImportant traits for &'a mut W
Value: From<V>,
ⓘImportant traits for &'a mut Wpub fn lt<V>(&mut self, field: &str, value: V) -> &mut Self where
Value: From<V>,
[src]
ⓘImportant traits for &'a mut W
Value: From<V>,
pub fn to_sql(&self, alias: &str) -> String
[src]
pub fn to_params(&self, alias: &str) -> Vec<(String, Value)>
[src]
Trait Implementations
impl Debug for Cond
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more