pub struct Bounds<T> {
pub low: Option<Limit<T>>,
pub high: Option<Limit<T>>,
pub multiple_of: Option<T>,
}Expand description
What a numeric schema states beyond being a number.
Fields§
§low: Option<Limit<T>>minimum, with exclusiveMinimum folded into it.
high: Option<Limit<T>>maximum, with exclusiveMaximum folded into it.
multiple_of: Option<T>multipleOf.
Trait Implementations§
impl<T: Copy> Copy for Bounds<T>
Source§impl<'de, T> Deserialize<'de> for Bounds<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Bounds<T>where
T: Deserialize<'de>,
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
impl<T: PartialEq> StructuralPartialEq for Bounds<T>
Auto Trait Implementations§
impl<T> Freeze for Bounds<T>
impl<T> RefUnwindSafe for Bounds<T>
impl<T> Send for Bounds<T>
impl<T> Sync for Bounds<T>
impl<T> Unpin for Bounds<T>
impl<T> UnsafeUnpin for Bounds<T>
impl<T> UnwindSafe for Bounds<T>
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