pub enum StringOrInt {
String(String),
Int64(i64),
UInt64(u64),
}
Expand description
Custom response type that may use different types for the same value.
Variants§
Trait Implementations§
Source§impl Debug for StringOrInt
impl Debug for StringOrInt
Source§impl<'de> Deserialize<'de> for StringOrInt
impl<'de> Deserialize<'de> for StringOrInt
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StringOrInt
impl PartialEq for StringOrInt
impl StructuralPartialEq for StringOrInt
Auto Trait Implementations§
impl Freeze for StringOrInt
impl RefUnwindSafe for StringOrInt
impl Send for StringOrInt
impl Sync for StringOrInt
impl Unpin for StringOrInt
impl UnwindSafe for StringOrInt
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