pub enum IntegerOrString {
Integer(Integer),
String(String),
}Variants§
Trait Implementations§
Source§impl Clone for IntegerOrString
impl Clone for IntegerOrString
Source§fn clone(&self) -> IntegerOrString
fn clone(&self) -> IntegerOrString
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 IntegerOrString
impl Debug for IntegerOrString
Source§impl<'de> Deserialize<'de> for IntegerOrString
impl<'de> Deserialize<'de> for IntegerOrString
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
impl Eq for IntegerOrString
Source§impl Hash for IntegerOrString
impl Hash for IntegerOrString
Source§impl PartialEq for IntegerOrString
impl PartialEq for IntegerOrString
Source§fn eq(&self, other: &IntegerOrString) -> bool
fn eq(&self, other: &IntegerOrString) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IntegerOrString
impl Serialize for IntegerOrString
impl StructuralPartialEq for IntegerOrString
Auto Trait Implementations§
impl Freeze for IntegerOrString
impl RefUnwindSafe for IntegerOrString
impl Send for IntegerOrString
impl Sync for IntegerOrString
impl Unpin for IntegerOrString
impl UnsafeUnpin for IntegerOrString
impl UnwindSafe for IntegerOrString
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