pub enum EntityMode {
Test,
Live,
Unknown,
}Expand description
Whether an entity is in test or live mode — mirrors which API key was used.
Variants§
Test
Created with test keys; no real money moved.
Live
Created with live keys.
Unknown
A mode this crate does not model yet.
Trait Implementations§
Source§impl Clone for EntityMode
impl Clone for EntityMode
impl Copy for EntityMode
Source§impl Debug for EntityMode
impl Debug for EntityMode
Source§impl<'de> Deserialize<'de> for EntityMode
impl<'de> Deserialize<'de> for EntityMode
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 EntityMode
Source§impl PartialEq for EntityMode
impl PartialEq for EntityMode
Source§impl Serialize for EntityMode
impl Serialize for EntityMode
impl StructuralPartialEq for EntityMode
Auto Trait Implementations§
impl Freeze for EntityMode
impl RefUnwindSafe for EntityMode
impl Send for EntityMode
impl Sync for EntityMode
impl Unpin for EntityMode
impl UnsafeUnpin for EntityMode
impl UnwindSafe for EntityMode
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.