pub struct RegisteredPlayer {Show 23 fields
pub id: Option<PlayerId>,
pub name: String,
pub original_deck: Vec<String>,
pub current_deck: Vec<String>,
pub starting_life: i32,
pub starting_hand: i32,
pub max_hand_size: i32,
pub mana_shards: i32,
pub team_number: i32,
pub cards_on_battlefield: Vec<String>,
pub extra_cards_on_battlefield: Vec<String>,
pub extra_cards_in_command_zone: Vec<String>,
pub schemes: Vec<String>,
pub planes: Vec<String>,
pub conspiracies: Vec<String>,
pub attractions: Vec<String>,
pub contraptions: Vec<String>,
pub commanders: Vec<String>,
pub vanguard_avatars: Vec<String>,
pub planeswalker: Option<String>,
pub random_foil: bool,
pub enable_etb_counters_effect: bool,
pub commander_damage_enabled: bool,
}Fields§
§id: Option<PlayerId>§name: String§original_deck: Vec<String>§current_deck: Vec<String>§starting_life: i32§starting_hand: i32§max_hand_size: i32§mana_shards: i32§team_number: i32§cards_on_battlefield: Vec<String>§extra_cards_on_battlefield: Vec<String>§extra_cards_in_command_zone: Vec<String>§schemes: Vec<String>§planes: Vec<String>§conspiracies: Vec<String>§attractions: Vec<String>§contraptions: Vec<String>§commanders: Vec<String>§vanguard_avatars: Vec<String>§planeswalker: Option<String>§random_foil: bool§enable_etb_counters_effect: bool§commander_damage_enabled: boolImplementations§
Source§impl RegisteredPlayer
impl RegisteredPlayer
pub fn new(name: impl Into<String>) -> Self
pub fn for_commander(name: impl Into<String>, commanders: Vec<String>) -> Self
pub fn has_enable_etb_counters_effect(&self) -> bool
pub fn cards_on_battlefield(&self) -> impl Iterator<Item = &String>
pub fn command_zone_cards(&self) -> impl Iterator<Item = &String>
pub fn add_extra_cards_on_battlefield<I>(&mut self, cards: I)where
I: IntoIterator<Item = String>,
pub fn add_extra_cards_in_command_zone<I>(&mut self, cards: I)where
I: IntoIterator<Item = String>,
pub fn assign_conspiracies<I>(&mut self, cards: I)where
I: IntoIterator<Item = String>,
pub fn for_variants( name: impl Into<String>, commanders: Vec<String>, schemes: Vec<String>, planes: Vec<String>, vanguard_avatars: Vec<String>, ) -> Self
pub fn for_variant_set( name: impl Into<String>, variants: &[RegisteredPlayerVariant], commanders: Vec<String>, schemes: Vec<String>, player_is_archenemy: bool, planes: Vec<String>, vanguard_avatars: Vec<String>, ) -> Self
pub fn apply_variants( &mut self, variants: &[RegisteredPlayerVariant], player_is_archenemy: bool, commanders: &[String], )
pub fn assign_commander<I>(&mut self, commanders: I)where
I: IntoIterator<Item = String>,
pub fn assign_vanguard_avatar<I>(&mut self, avatars: I)where
I: IntoIterator<Item = String>,
pub fn restore_deck(&mut self)
pub fn use_random_foil(&mut self, value: bool)
pub fn set_cards_on_battlefield<I>(&mut self, cards: I)where
I: IntoIterator<Item = String>,
pub fn set_schemes<I>(&mut self, cards: I)where
I: IntoIterator<Item = String>,
pub fn set_planes<I>(&mut self, cards: I)where
I: IntoIterator<Item = String>,
pub fn set_attractions<I>(&mut self, cards: I)where
I: IntoIterator<Item = String>,
pub fn set_contraptions<I>(&mut self, cards: I)where
I: IntoIterator<Item = String>,
Trait Implementations§
Source§impl Clone for RegisteredPlayer
impl Clone for RegisteredPlayer
Source§fn clone(&self) -> RegisteredPlayer
fn clone(&self) -> RegisteredPlayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegisteredPlayer
impl Debug for RegisteredPlayer
Source§impl<'de> Deserialize<'de> for RegisteredPlayer
impl<'de> Deserialize<'de> for RegisteredPlayer
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
Auto Trait Implementations§
impl Freeze for RegisteredPlayer
impl RefUnwindSafe for RegisteredPlayer
impl Send for RegisteredPlayer
impl Sync for RegisteredPlayer
impl Unpin for RegisteredPlayer
impl UnsafeUnpin for RegisteredPlayer
impl UnwindSafe for RegisteredPlayer
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.