pub struct Player {
pub name: String,
pub color_id: i32,
pub selected_color: u8,
pub selected_team_id: u8,
pub resolved_team_id: u8,
pub civ_id: u32,
pub custom_civ_ids: Vec<u32>,
pub player_type: u32,
pub profile_id: i32,
pub player_number: i32,
pub prefer_random: bool,
pub resigned: bool,
}Fields§
§name: String§color_id: i32§selected_color: u8§selected_team_id: u8§resolved_team_id: u8§civ_id: u32§custom_civ_ids: Vec<u32>§player_type: u32§profile_id: i32§player_number: i32§prefer_random: bool§resigned: boolTrait Implementations§
Source§impl From<&TeamPlayer<'_>> for Player
impl From<&TeamPlayer<'_>> for Player
Source§fn from(player: &TeamPlayer<'_>) -> Self
fn from(player: &TeamPlayer<'_>) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Player
impl FromWasmAbi for Player
Source§impl IntoWasmAbi for Player
impl IntoWasmAbi for Player
Source§impl LongRefFromWasmAbi for Player
impl LongRefFromWasmAbi for Player
Source§impl OptionFromWasmAbi for Player
impl OptionFromWasmAbi for Player
Source§impl OptionIntoWasmAbi for Player
impl OptionIntoWasmAbi for Player
Source§impl RefFromWasmAbi for Player
impl RefFromWasmAbi for Player
Source§impl RefMutFromWasmAbi for Player
impl RefMutFromWasmAbi for Player
Source§impl TryFromJsValue for Player
impl TryFromJsValue for Player
Source§impl VectorFromWasmAbi for Player
impl VectorFromWasmAbi for Player
Source§impl VectorIntoWasmAbi for Player
impl VectorIntoWasmAbi for Player
impl SupportsConstructor for Player
impl SupportsInstanceProperty for Player
impl SupportsStaticProperty for Player
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.