pub enum BoolOrString {
Bool(bool),
String(String),
}
Expand description
Wrapper type for odd responses that contain either a bool
or a String
For example, the limit of a deposit method can be false
for no limit, or a String value of the
numeric limit.
Variants§
Trait Implementations§
Source§impl Clone for BoolOrString
impl Clone for BoolOrString
Source§fn clone(&self) -> BoolOrString
fn clone(&self) -> BoolOrString
Returns a copy 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 BoolOrString
impl Debug for BoolOrString
Source§impl<'de> Deserialize<'de> for BoolOrString
impl<'de> Deserialize<'de> for BoolOrString
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
Source§impl PartialEq for BoolOrString
impl PartialEq for BoolOrString
impl Eq for BoolOrString
impl StructuralPartialEq for BoolOrString
Auto Trait Implementations§
impl Freeze for BoolOrString
impl RefUnwindSafe for BoolOrString
impl Send for BoolOrString
impl Sync for BoolOrString
impl Unpin for BoolOrString
impl UnwindSafe for BoolOrString
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.