pub struct LimitInt(/* private fields */);Trait Implementations§
Source§impl BoundedInteger for LimitInt
impl BoundedInteger for LimitInt
const MIN: Option<i128>
const MAX: Option<i128>
const DEFAULT: Option<i128>
const TYPE_DESCRIPTION: &'static str = "an integer greater than or equal to 0"
fn get(&self) -> i128
fn new(value: i128) -> Result<Self, BoundedIntegerError>
fn validate(value: i128) -> Result<(), BoundedIntegerError>
impl Copy for LimitInt
Source§impl<'de> Deserialize<'de> for LimitInt
impl<'de> Deserialize<'de> for LimitInt
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 PartialOrd for LimitInt
impl PartialOrd for LimitInt
impl StructuralPartialEq for LimitInt
Auto Trait Implementations§
impl Freeze for LimitInt
impl RefUnwindSafe for LimitInt
impl Send for LimitInt
impl Sync for LimitInt
impl Unpin for LimitInt
impl UnsafeUnpin for LimitInt
impl UnwindSafe for LimitInt
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