pub struct RangeSpec {
pub from: Option<i64>,
pub to: Option<i64>,
}Expand description
Per-field range constraint (e.g. integer:1..100, date:2020..2025).
None bounds are resolved later using field defaults or global since/until.
Fields§
§from: Option<i64>§to: Option<i64>Trait Implementations§
impl Copy for RangeSpec
impl Eq for RangeSpec
impl StructuralPartialEq for RangeSpec
Auto Trait Implementations§
impl Freeze for RangeSpec
impl RefUnwindSafe for RangeSpec
impl Send for RangeSpec
impl Sync for RangeSpec
impl Unpin for RangeSpec
impl UnsafeUnpin for RangeSpec
impl UnwindSafe for RangeSpec
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