#[non_exhaustive]pub enum ManualOrAutoEntry {
Manual,
Auto,
}Expand description
Whether an order was placed by a human or automatically. Defaults to Auto.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl ManualOrAutoEntry
impl ManualOrAutoEntry
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
The protobuf spelling, as OrderPlacement::as_str_name writes it.
Trait Implementations§
Source§impl Clone for ManualOrAutoEntry
impl Clone for ManualOrAutoEntry
Source§fn clone(&self) -> ManualOrAutoEntry
fn clone(&self) -> ManualOrAutoEntry
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 moreimpl Copy for ManualOrAutoEntry
Source§impl Debug for ManualOrAutoEntry
impl Debug for ManualOrAutoEntry
Source§impl Default for ManualOrAutoEntry
impl Default for ManualOrAutoEntry
Source§fn default() -> ManualOrAutoEntry
fn default() -> ManualOrAutoEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ManualOrAutoEntry
impl<'de> Deserialize<'de> for ManualOrAutoEntry
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 Display for ManualOrAutoEntry
impl Display for ManualOrAutoEntry
impl Eq for ManualOrAutoEntry
Source§impl From<ManualOrAutoEntry> for OrderPlacement
impl From<ManualOrAutoEntry> for OrderPlacement
Source§fn from(entry: ManualOrAutoEntry) -> Self
fn from(entry: ManualOrAutoEntry) -> Self
Converts to this type from the input type.
Source§impl From<ManualOrAutoEntry> for OrderPlacement
impl From<ManualOrAutoEntry> for OrderPlacement
Source§fn from(entry: ManualOrAutoEntry) -> Self
fn from(entry: ManualOrAutoEntry) -> Self
Converts to this type from the input type.
Source§impl From<ManualOrAutoEntry> for OrderPlacement
impl From<ManualOrAutoEntry> for OrderPlacement
Source§fn from(entry: ManualOrAutoEntry) -> Self
fn from(entry: ManualOrAutoEntry) -> Self
Converts to this type from the input type.
Source§impl From<ManualOrAutoEntry> for OrderPlacement
impl From<ManualOrAutoEntry> for OrderPlacement
Source§fn from(entry: ManualOrAutoEntry) -> Self
fn from(entry: ManualOrAutoEntry) -> Self
Converts to this type from the input type.
Source§impl From<ManualOrAutoEntry> for OrderPlacement
impl From<ManualOrAutoEntry> for OrderPlacement
Source§fn from(entry: ManualOrAutoEntry) -> Self
fn from(entry: ManualOrAutoEntry) -> Self
Converts to this type from the input type.
Source§impl From<ManualOrAutoEntry> for OrderPlacement
impl From<ManualOrAutoEntry> for OrderPlacement
Source§fn from(entry: ManualOrAutoEntry) -> Self
fn from(entry: ManualOrAutoEntry) -> Self
Converts to this type from the input type.
Source§impl From<ManualOrAutoEntry> for OrderPlacement
impl From<ManualOrAutoEntry> for OrderPlacement
Source§fn from(entry: ManualOrAutoEntry) -> Self
fn from(entry: ManualOrAutoEntry) -> Self
Converts to this type from the input type.
Source§impl Hash for ManualOrAutoEntry
impl Hash for ManualOrAutoEntry
Source§impl PartialEq for ManualOrAutoEntry
impl PartialEq for ManualOrAutoEntry
Source§impl Serialize for ManualOrAutoEntry
impl Serialize for ManualOrAutoEntry
impl StructuralPartialEq for ManualOrAutoEntry
Auto Trait Implementations§
impl Freeze for ManualOrAutoEntry
impl RefUnwindSafe for ManualOrAutoEntry
impl Send for ManualOrAutoEntry
impl Sync for ManualOrAutoEntry
impl Unpin for ManualOrAutoEntry
impl UnsafeUnpin for ManualOrAutoEntry
impl UnwindSafe for ManualOrAutoEntry
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