pub enum IntOrString {
Int(i64),
String(String),
}Expand description
i64 or string
Variants§
Trait Implementations§
Source§impl Clone for IntOrString
impl Clone for IntOrString
Source§fn clone(&self) -> IntOrString
fn clone(&self) -> IntOrString
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 IntOrString
impl Debug for IntOrString
Source§impl From<&str> for IntOrString
impl From<&str> for IntOrString
Source§fn from(value: &str) -> IntOrString
fn from(value: &str) -> IntOrString
Converts to this type from the input type.
Source§impl From<String> for IntOrString
impl From<String> for IntOrString
Source§fn from(value: String) -> IntOrString
fn from(value: String) -> IntOrString
Converts to this type from the input type.
Source§impl From<i64> for IntOrString
impl From<i64> for IntOrString
Source§fn from(value: i64) -> IntOrString
fn from(value: i64) -> IntOrString
Converts to this type from the input type.
Source§impl PartialEq for IntOrString
impl PartialEq for IntOrString
Source§impl Serialize for IntOrString
impl Serialize for IntOrString
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IntOrString
Auto Trait Implementations§
impl Freeze for IntOrString
impl RefUnwindSafe for IntOrString
impl Send for IntOrString
impl Sync for IntOrString
impl Unpin for IntOrString
impl UnwindSafe for IntOrString
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