pub struct UseItemSchema {
pub cooldown: Box<CooldownSchema>,
pub item: Box<ItemSchema>,
pub character: Box<CharacterSchema>,
}Fields§
§cooldown: Box<CooldownSchema>Cooldown details.
item: Box<ItemSchema>Item details.
character: Box<CharacterSchema>Player details.
Implementations§
Source§impl UseItemSchema
impl UseItemSchema
pub fn new( cooldown: CooldownSchema, item: ItemSchema, character: CharacterSchema, ) -> UseItemSchema
Trait Implementations§
Source§impl Clone for UseItemSchema
impl Clone for UseItemSchema
Source§fn clone(&self) -> UseItemSchema
fn clone(&self) -> UseItemSchema
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 UseItemSchema
impl Debug for UseItemSchema
Source§impl Default for UseItemSchema
impl Default for UseItemSchema
Source§fn default() -> UseItemSchema
fn default() -> UseItemSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UseItemSchema
impl<'de> Deserialize<'de> for UseItemSchema
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 GetCharacter for UseItemSchema
impl GetCharacter for UseItemSchema
fn get_character(&self) -> &CharacterSchema
Source§impl GetCooldown for UseItemSchema
impl GetCooldown for UseItemSchema
fn get_cooldown(&self) -> &CooldownSchema
Source§impl PartialEq for UseItemSchema
impl PartialEq for UseItemSchema
Source§impl Serialize for UseItemSchema
impl Serialize for UseItemSchema
impl StructuralPartialEq for UseItemSchema
Auto Trait Implementations§
impl Freeze for UseItemSchema
impl RefUnwindSafe for UseItemSchema
impl Send for UseItemSchema
impl Sync for UseItemSchema
impl Unpin for UseItemSchema
impl UnwindSafe for UseItemSchema
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