pub struct TargetSpec {
pub zone: TargetZone,
pub side: TargetSide,
pub slot_filter: TargetSlotFilter,
pub card_type: Option<CardType>,
pub card_trait: Option<u16>,
pub level_max: Option<u8>,
pub cost_max: Option<u8>,
pub count: u8,
pub limit: Option<u8>,
pub source_only: bool,
pub reveal_to_controller: bool,
}Fields§
§zone: TargetZone§side: TargetSide§slot_filter: TargetSlotFilter§card_type: Option<CardType>§card_trait: Option<u16>§level_max: Option<u8>§cost_max: Option<u8>§count: u8§limit: Option<u8>§source_only: bool§reveal_to_controller: boolTrait Implementations§
Source§impl Clone for TargetSpec
impl Clone for TargetSpec
Source§fn clone(&self) -> TargetSpec
fn clone(&self) -> TargetSpec
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 TargetSpec
impl Debug for TargetSpec
Source§impl<'de> Deserialize<'de> for TargetSpec
impl<'de> Deserialize<'de> for TargetSpec
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
Source§impl Hash for TargetSpec
impl Hash for TargetSpec
Auto Trait Implementations§
impl Freeze for TargetSpec
impl RefUnwindSafe for TargetSpec
impl Send for TargetSpec
impl Sync for TargetSpec
impl Unpin for TargetSpec
impl UnwindSafe for TargetSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more