pub struct FightParams {
    pub name: String,
    pub fight_request_schema: Option<FightRequestSchema>,
}Expand description
struct for passing parameters to the method fight
Fields§
§name: StringName of your character.
fight_request_schema: Option<FightRequestSchema>Implementations§
Source§impl FightParams
 
impl FightParams
pub fn new( name: String, fight_request_schema: Option<FightRequestSchema>, ) -> Self
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