pub struct GiveItemsSchema {
pub items: Vec<SimpleItemSchema>,
pub character: String,
}Fields§
§items: Vec<SimpleItemSchema>List of items to give
character: StringCharacter name. The name of the character who will receive the items.
Implementations§
Source§impl GiveItemsSchema
impl GiveItemsSchema
pub fn new(items: Vec<SimpleItemSchema>, character: String) -> GiveItemsSchema
Trait Implementations§
Source§impl Clone for GiveItemsSchema
impl Clone for GiveItemsSchema
Source§fn clone(&self) -> GiveItemsSchema
fn clone(&self) -> GiveItemsSchema
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 GiveItemsSchema
impl Debug for GiveItemsSchema
Source§impl Default for GiveItemsSchema
impl Default for GiveItemsSchema
Source§fn default() -> GiveItemsSchema
fn default() -> GiveItemsSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GiveItemsSchema
impl<'de> Deserialize<'de> for GiveItemsSchema
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 GiveItemsSchema
impl PartialEq for GiveItemsSchema
Source§impl Serialize for GiveItemsSchema
impl Serialize for GiveItemsSchema
impl StructuralPartialEq for GiveItemsSchema
Auto Trait Implementations§
impl Freeze for GiveItemsSchema
impl RefUnwindSafe for GiveItemsSchema
impl Send for GiveItemsSchema
impl Sync for GiveItemsSchema
impl Unpin for GiveItemsSchema
impl UnwindSafe for GiveItemsSchema
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