pub enum MixedCommodity {
ShipCommodity(Commodity),
OdysseyItem(Item),
Unknown(String),
}
Expand description
Special model for handling scenarios where the input might either be a ‘ship’ commodity or an Odyssey commodity.
Variants§
ShipCommodity(Commodity)
OdysseyItem(Item)
Unknown(String)
Available on crate feature
allow-unknown
only.Trait Implementations§
Source§impl Clone for MixedCommodity
impl Clone for MixedCommodity
Source§fn clone(&self) -> MixedCommodity
fn clone(&self) -> MixedCommodity
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 MixedCommodity
impl Debug for MixedCommodity
Source§impl<'de> Deserialize<'de> for MixedCommodity
impl<'de> Deserialize<'de> for MixedCommodity
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 FromStr for MixedCommodity
impl FromStr for MixedCommodity
Source§impl PartialEq for MixedCommodity
impl PartialEq for MixedCommodity
Source§impl Serialize for MixedCommodity
impl Serialize for MixedCommodity
impl StructuralPartialEq for MixedCommodity
Auto Trait Implementations§
impl Freeze for MixedCommodity
impl RefUnwindSafe for MixedCommodity
impl Send for MixedCommodity
impl Sync for MixedCommodity
impl Unpin for MixedCommodity
impl UnwindSafe for MixedCommodity
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