#[non_exhaustive]pub struct MoveBattleStylePreference {
pub low_hp_preference: i32,
pub high_hp_preference: i32,
pub move_battle_style: NamedAPIResource<MoveBattleStyle>,
}
Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.low_hp_preference: i32
§high_hp_preference: i32
§move_battle_style: NamedAPIResource<MoveBattleStyle>
Trait Implementations§
Source§impl Clone for MoveBattleStylePreference
impl Clone for MoveBattleStylePreference
Source§fn clone(&self) -> MoveBattleStylePreference
fn clone(&self) -> MoveBattleStylePreference
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 MoveBattleStylePreference
impl Debug for MoveBattleStylePreference
Source§impl<'de> Deserialize<'de> for MoveBattleStylePreference
impl<'de> Deserialize<'de> for MoveBattleStylePreference
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 Hash for MoveBattleStylePreference
impl Hash for MoveBattleStylePreference
impl Eq for MoveBattleStylePreference
impl StructuralPartialEq for MoveBattleStylePreference
Auto Trait Implementations§
impl Freeze for MoveBattleStylePreference
impl RefUnwindSafe for MoveBattleStylePreference
impl !Send for MoveBattleStylePreference
impl !Sync for MoveBattleStylePreference
impl Unpin for MoveBattleStylePreference
impl UnwindSafe for MoveBattleStylePreference
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