pub enum IntOrValue {
Int(i64),
Value {
value: i64,
},
}Expand description
An integer that Open Library sometimes wraps as { "value": 123 }.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for IntOrValue
impl Clone for IntOrValue
Source§fn clone(&self) -> IntOrValue
fn clone(&self) -> IntOrValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IntOrValue
impl Debug for IntOrValue
Source§impl<'de> Deserialize<'de> for IntOrValue
impl<'de> Deserialize<'de> for IntOrValue
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
Auto Trait Implementations§
impl Freeze for IntOrValue
impl RefUnwindSafe for IntOrValue
impl Send for IntOrValue
impl Sync for IntOrValue
impl Unpin for IntOrValue
impl UnsafeUnpin for IntOrValue
impl UnwindSafe for IntOrValue
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