pub enum IntOrString {
Int(i64),
String(String),
}
Expand description
Wrapper type for submitting order cancels by Kraken id (String) or user-ref (Int).
Variants§
Trait Implementations§
Source§impl Clone for IntOrString
impl Clone for IntOrString
Source§fn clone(&self) -> IntOrString
fn clone(&self) -> IntOrString
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 IntOrString
impl Debug for IntOrString
Source§impl Display for IntOrString
impl Display for IntOrString
Source§impl From<&str> for IntOrString
impl From<&str> for IntOrString
Source§impl From<String> for IntOrString
impl From<String> for IntOrString
Source§impl From<i64> for IntOrString
impl From<i64> for IntOrString
Source§impl PartialEq for IntOrString
impl PartialEq for IntOrString
Source§impl Serialize for IntOrString
impl Serialize for IntOrString
impl Eq for IntOrString
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
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.