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 Clone for StringOrInt
impl Clone for StringOrInt
Source§fn clone(&self) -> StringOrInt
fn clone(&self) -> StringOrInt
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 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
Source§impl Serialize for StringOrInt
impl Serialize 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 UnsafeUnpin 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