#[non_exhaustive]pub struct RecordPredicate {
pub field: String,
pub op: Option<RecordPredicateOp>,
pub number: Option<Option<f64>>,
pub boolean: Option<Option<bool>>,
pub string: Option<Option<String>>,
pub value_state: Option<Option<RecordPredicateValueState>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.field: String§op: Option<RecordPredicateOp>§number: Option<Option<f64>>§boolean: Option<Option<bool>>§string: Option<Option<String>>§value_state: Option<Option<RecordPredicateValueState>>Implementations§
Source§impl RecordPredicate
impl RecordPredicate
pub fn new(field: impl Into<String>) -> Self
pub fn op(self, op: RecordPredicateOp) -> Self
pub fn number(self, number: f64) -> Self
pub fn number_null(self) -> Self
pub fn boolean(self, boolean: bool) -> Self
pub fn boolean_null(self) -> Self
pub fn string(self, string: impl Into<String>) -> Self
pub fn string_null(self) -> Self
pub fn value_state(self, value_state: RecordPredicateValueState) -> Self
pub fn value_state_null(self) -> Self
Trait Implementations§
Source§impl Clone for RecordPredicate
impl Clone for RecordPredicate
Source§impl Debug for RecordPredicate
impl Debug for RecordPredicate
Source§impl<'de> Deserialize<'de> for RecordPredicate
impl<'de> Deserialize<'de> for RecordPredicate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RecordPredicate
impl PartialEq for RecordPredicate
Source§impl Serialize for RecordPredicate
impl Serialize for RecordPredicate
impl StructuralPartialEq for RecordPredicate
Auto Trait Implementations§
impl Forget for RecordPredicate
impl Freeze for RecordPredicate
impl Move for RecordPredicate
impl RefUnwindSafe for RecordPredicate
impl Send for RecordPredicate
impl Sync for RecordPredicate
impl Unpin for RecordPredicate
impl UnsafeUnpin for RecordPredicate
impl UnwindSafe for RecordPredicate
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