pub enum MixedMaterial {
ShipMaterial(Material),
OdysseyMaterial(Item),
}
Expand description
In some cases, the game emits events that refer to materials, but can also contain Odyssey items. If that is the case, this model will be used instead.
Variants§
Trait Implementations§
Source§impl Clone for MixedMaterial
impl Clone for MixedMaterial
Source§fn clone(&self) -> MixedMaterial
fn clone(&self) -> MixedMaterial
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 MixedMaterial
impl Debug for MixedMaterial
Source§impl<'de> Deserialize<'de> for MixedMaterial
impl<'de> Deserialize<'de> for MixedMaterial
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 From<MixedMaterial> for MixedMaterialCategory
impl From<MixedMaterial> for MixedMaterialCategory
Source§fn from(value: MixedMaterial) -> Self
fn from(value: MixedMaterial) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MixedMaterial
impl PartialEq for MixedMaterial
Source§impl Serialize for MixedMaterial
impl Serialize for MixedMaterial
impl StructuralPartialEq for MixedMaterial
Auto Trait Implementations§
impl Freeze for MixedMaterial
impl RefUnwindSafe for MixedMaterial
impl Send for MixedMaterial
impl Sync for MixedMaterial
impl Unpin for MixedMaterial
impl UnwindSafe for MixedMaterial
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