pub struct StateWeather {
pub weather_type: Weather,
pub turns_remaining: i8,
}Fields§
§weather_type: Weather§turns_remaining: i8Implementations§
Source§impl StateWeather
impl StateWeather
pub fn serialize(&self) -> String
pub fn deserialize(serialized: &str) -> StateWeather
Trait Implementations§
Source§impl Clone for StateWeather
impl Clone for StateWeather
Source§fn clone(&self) -> StateWeather
fn clone(&self) -> StateWeather
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 StateWeather
impl Debug for StateWeather
Source§impl PartialEq for StateWeather
impl PartialEq for StateWeather
impl StructuralPartialEq for StateWeather
Auto Trait Implementations§
impl Freeze for StateWeather
impl RefUnwindSafe for StateWeather
impl Send for StateWeather
impl Sync for StateWeather
impl Unpin for StateWeather
impl UnwindSafe for StateWeather
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