pub struct DatabaseFilter {
pub column: String,
pub operator_str: String,
pub value: Value,
}
Expand description
Database filter that holds a column, operator, and value
Fields§
§column: String
フィルター対象のカラム名
operator_str: String
比較演算子
value: Value
比較する値
Implementations§
Source§impl DatabaseFilter
impl DatabaseFilter
Sourcepub fn new(column: String, operator: FilterOperator, value: Value) -> Self
pub fn new(column: String, operator: FilterOperator, value: Value) -> Self
Create a new database filter
Trait Implementations§
Source§impl Clone for DatabaseFilter
impl Clone for DatabaseFilter
Source§fn clone(&self) -> DatabaseFilter
fn clone(&self) -> DatabaseFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DatabaseFilter
impl Debug for DatabaseFilter
Auto Trait Implementations§
impl Freeze for DatabaseFilter
impl RefUnwindSafe for DatabaseFilter
impl Send for DatabaseFilter
impl Sync for DatabaseFilter
impl Unpin for DatabaseFilter
impl UnwindSafe for DatabaseFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more