pub struct EvolutionData {
pub method: EvolutionMethod,
pub condition: String,
pub level: Option<u8>,
pub friendship: Option<bool>,
pub knows_move: Option<String>,
pub time_of_day: Option<String>,
pub holding_item: Option<String>,
pub gender: Option<Gender>,
pub use_item: Option<String>,
pub trade_for: Option<String>,
}Expand description
Details and conditions for one species to evolve into another.
Fields§
§method: EvolutionMethodThe evolution method, which determines when the rest of the conditions should be checked.
condition: StringA string detailing how the species evolves.
level: Option<u8>Minimum level that must be reached for evolution.
friendship: Option<bool>Does the species require high friendship?
High friendship is defined as a value of at least 220.
knows_move: Option<String>Move that must be present on the Mon’s moveset.
time_of_day: Option<String>Time of day where evolution occurs
holding_item: Option<String>Item held by the Mon.
gender: Option<Gender>Gender of the Mon.
use_item: Option<String>Item that must be used on the Mon.
trade_for: Option<String>The species that this Mon was traded for.
Trait Implementations§
Source§impl Clone for EvolutionData
impl Clone for EvolutionData
Source§fn clone(&self) -> EvolutionData
fn clone(&self) -> EvolutionData
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 EvolutionData
impl Debug for EvolutionData
Source§impl<'de> Deserialize<'de> for EvolutionData
impl<'de> Deserialize<'de> for EvolutionData
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
Auto Trait Implementations§
impl Freeze for EvolutionData
impl RefUnwindSafe for EvolutionData
impl Send for EvolutionData
impl Sync for EvolutionData
impl Unpin for EvolutionData
impl UnsafeUnpin for EvolutionData
impl UnwindSafe for EvolutionData
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