pub struct FightParams {
pub name: String,
}Expand description
struct for passing parameters to the method fight
Fields§
§name: StringName of your character.
Implementations§
Trait Implementations§
Source§impl Clone for FightParams
impl Clone for FightParams
Source§fn clone(&self) -> FightParams
fn clone(&self) -> FightParams
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 moreAuto Trait Implementations§
impl Freeze for FightParams
impl RefUnwindSafe for FightParams
impl Send for FightParams
impl Sync for FightParams
impl Unpin for FightParams
impl UnwindSafe for FightParams
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