pub struct ResourceSchema {
    pub name: String,
    pub code: String,
    pub skill: GatheringSkill,
    pub level: i32,
    pub drops: Vec<DropRateSchema>,
}Fields§
§name: StringThe name of the resource
code: StringThe code of the resource. This is the resource’s unique identifier (ID).
skill: GatheringSkillThe skill required to gather this resource.
level: i32The skill level required to gather this resource.
drops: Vec<DropRateSchema>The drops of this resource.
Implementations§
Source§impl ResourceSchema
 
impl ResourceSchema
pub fn new( name: String, code: String, skill: GatheringSkill, level: i32, drops: Vec<DropRateSchema>, ) -> ResourceSchema
Trait Implementations§
Source§impl Clone for ResourceSchema
 
impl Clone for ResourceSchema
Source§fn clone(&self) -> ResourceSchema
 
fn clone(&self) -> ResourceSchema
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 ResourceSchema
 
impl Debug for ResourceSchema
Source§impl Default for ResourceSchema
 
impl Default for ResourceSchema
Source§fn default() -> ResourceSchema
 
fn default() -> ResourceSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceSchema
 
impl<'de> Deserialize<'de> for ResourceSchema
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 ResourceSchema
 
impl PartialEq for ResourceSchema
Source§impl Serialize for ResourceSchema
 
impl Serialize for ResourceSchema
impl StructuralPartialEq for ResourceSchema
Auto Trait Implementations§
impl Freeze for ResourceSchema
impl RefUnwindSafe for ResourceSchema
impl Send for ResourceSchema
impl Sync for ResourceSchema
impl Unpin for ResourceSchema
impl UnwindSafe for ResourceSchema
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