#[non_exhaustive]pub struct NumericRangeFacet {
pub field: String,
pub size: Option<u64>,
pub numeric_ranges: Vec<NumericRange>,
}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§size: Option<u64>§numeric_ranges: Vec<NumericRange>Implementations§
Source§impl NumericRangeFacet
impl NumericRangeFacet
pub fn new(field: impl Into<String>) -> Self
pub fn with_numeric_ranges( field: impl Into<String>, numeric_ranges: impl Into<Vec<NumericRange>>, ) -> Self
pub fn size(self, size: impl Into<Option<u64>>) -> Self
pub fn add_numeric_range(self, range: NumericRange) -> Self
Trait Implementations§
Source§impl Clone for NumericRangeFacet
impl Clone for NumericRangeFacet
Source§fn clone(&self) -> NumericRangeFacet
fn clone(&self) -> NumericRangeFacet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumericRangeFacet
impl Debug for NumericRangeFacet
Source§impl PartialEq for NumericRangeFacet
impl PartialEq for NumericRangeFacet
Source§impl Serialize for NumericRangeFacet
impl Serialize for NumericRangeFacet
impl StructuralPartialEq for NumericRangeFacet
Auto Trait Implementations§
impl Freeze for NumericRangeFacet
impl RefUnwindSafe for NumericRangeFacet
impl Send for NumericRangeFacet
impl Sync for NumericRangeFacet
impl Unpin for NumericRangeFacet
impl UnsafeUnpin for NumericRangeFacet
impl UnwindSafe for NumericRangeFacet
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