pub struct EffectSchema {
pub name: String,
pub code: String,
pub description: String,
pub type: EffectType,
pub subtype: EffectSubtype,
}Fields§
§name: StringName of the effect.
code: StringThe code of the effect. This is the effect’s unique identifier (ID).
description: StringDescription of the effect. This is a brief description of the effect.
type: EffectTypeType of the effect.
subtype: EffectSubtypeSubtype of the effect.
Implementations§
Source§impl EffectSchema
impl EffectSchema
pub fn new( name: String, code: String, description: String, type: EffectType, subtype: EffectSubtype, ) -> EffectSchema
Trait Implementations§
Source§impl Clone for EffectSchema
impl Clone for EffectSchema
Source§fn clone(&self) -> EffectSchema
fn clone(&self) -> EffectSchema
Returns a duplicate 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 EffectSchema
impl Debug for EffectSchema
Source§impl Default for EffectSchema
impl Default for EffectSchema
Source§fn default() -> EffectSchema
fn default() -> EffectSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EffectSchema
impl<'de> Deserialize<'de> for EffectSchema
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 PartialEq for EffectSchema
impl PartialEq for EffectSchema
Source§impl Serialize for EffectSchema
impl Serialize for EffectSchema
impl StructuralPartialEq for EffectSchema
Auto Trait Implementations§
impl Freeze for EffectSchema
impl RefUnwindSafe for EffectSchema
impl Send for EffectSchema
impl Sync for EffectSchema
impl Unpin for EffectSchema
impl UnwindSafe for EffectSchema
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