pub enum JsonInteger {
Positive(u64),
Negative(i64),
}Expand description
Json integers can be i64 or u64, which cover different ranges. This is a type representing those numbers.
Variants§
Trait Implementations§
Source§impl Clone for JsonInteger
impl Clone for JsonInteger
Source§fn clone(&self) -> JsonInteger
fn clone(&self) -> JsonInteger
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 JsonInteger
impl Debug for JsonInteger
Source§impl<'de> Deserialize<'de> for JsonInteger
impl<'de> Deserialize<'de> for JsonInteger
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 Display for JsonInteger
impl Display for JsonInteger
Source§impl From<i16> for JsonInteger
impl From<i16> for JsonInteger
Source§impl From<i32> for JsonInteger
impl From<i32> for JsonInteger
Source§impl From<i64> for JsonInteger
impl From<i64> for JsonInteger
Source§impl From<i8> for JsonInteger
impl From<i8> for JsonInteger
Source§impl From<isize> for JsonInteger
impl From<isize> for JsonInteger
Source§impl From<u16> for JsonInteger
impl From<u16> for JsonInteger
Source§impl From<u32> for JsonInteger
impl From<u32> for JsonInteger
Source§impl From<u64> for JsonInteger
impl From<u64> for JsonInteger
Source§impl From<u8> for JsonInteger
impl From<u8> for JsonInteger
Source§impl From<usize> for JsonInteger
impl From<usize> for JsonInteger
Source§impl Hash for JsonInteger
impl Hash for JsonInteger
Source§impl Ord for JsonInteger
impl Ord for JsonInteger
Source§fn cmp(&self, other: &JsonInteger) -> Ordering
fn cmp(&self, other: &JsonInteger) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for JsonInteger
impl PartialEq for JsonInteger
Source§impl PartialOrd for JsonInteger
impl PartialOrd for JsonInteger
Source§impl Serialize for JsonInteger
impl Serialize for JsonInteger
impl Copy for JsonInteger
impl Eq for JsonInteger
impl StructuralPartialEq for JsonInteger
Auto Trait Implementations§
impl Freeze for JsonInteger
impl RefUnwindSafe for JsonInteger
impl Send for JsonInteger
impl Sync for JsonInteger
impl Unpin for JsonInteger
impl UnwindSafe for JsonInteger
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