pub struct Setting { /* private fields */ }
Expand description
A predicate that evaluates the value of a specific setting.
Implementations§
source§impl Setting
impl Setting
sourcepub fn new(
identifier: impl Into<String>,
operator: Operator,
value: impl Serialize,
) -> Self
pub fn new( identifier: impl Into<String>, operator: Operator, value: impl Serialize, ) -> Self
Creates a new predicate that evaluates the value of a specific setting against value
using operator
.
sourcepub fn eq(identifier: impl Into<String>, value: impl Serialize) -> Self
pub fn eq(identifier: impl Into<String>, value: impl Serialize) -> Self
Creates a new predicate that checks if the value of the setting is equal to value
.
sourcepub fn ne(identifier: impl Into<String>, value: impl Serialize) -> Self
pub fn ne(identifier: impl Into<String>, value: impl Serialize) -> Self
Creates a new predicate that checks if the value of the setting is not equal to value
.
sourcepub fn lt(identifier: impl Into<String>, value: impl Serialize) -> Self
pub fn lt(identifier: impl Into<String>, value: impl Serialize) -> Self
Creates a new predicate that checks if the value of the setting is less than value
.
sourcepub fn lte(identifier: impl Into<String>, value: impl Serialize) -> Self
pub fn lte(identifier: impl Into<String>, value: impl Serialize) -> Self
Creates a new predicate that checks if the value of the setting is less than or equal to value
.
sourcepub fn gt(identifier: impl Into<String>, value: impl Serialize) -> Self
pub fn gt(identifier: impl Into<String>, value: impl Serialize) -> Self
Creates a new predicate that checks if the value of the setting is greater than value
.
sourcepub fn gte(identifier: impl Into<String>, value: impl Serialize) -> Self
pub fn gte(identifier: impl Into<String>, value: impl Serialize) -> Self
Creates a new predicate that checks if the value of the setting is greater than or equal to value
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Setting
impl RefUnwindSafe for Setting
impl Send for Setting
impl Sync for Setting
impl Unpin for Setting
impl UnwindSafe for Setting
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