pub struct ZoneCountCondition {
pub side: TargetSide,
pub zone: CountZone,
pub cmp: CountCmp,
pub value: u8,
pub card_ids: Vec<CardId>,
}Expand description
Simple count condition for zones.
Fields§
§side: TargetSideSide to evaluate the count for.
zone: CountZoneZone to count cards in.
cmp: CountCmpComparison operator to apply to the count.
value: u8Threshold value for the comparison.
card_ids: Vec<CardId>Optional card-id filter; empty means any card id.
Trait Implementations§
Source§impl Clone for ZoneCountCondition
impl Clone for ZoneCountCondition
Source§fn clone(&self) -> ZoneCountCondition
fn clone(&self) -> ZoneCountCondition
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 ZoneCountCondition
impl Debug for ZoneCountCondition
Source§impl<'de> Deserialize<'de> for ZoneCountCondition
impl<'de> Deserialize<'de> for ZoneCountCondition
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 ZoneCountCondition
impl Hash for ZoneCountCondition
Source§impl PartialEq for ZoneCountCondition
impl PartialEq for ZoneCountCondition
Source§impl Serialize for ZoneCountCondition
impl Serialize for ZoneCountCondition
impl Eq for ZoneCountCondition
impl StructuralPartialEq for ZoneCountCondition
Auto Trait Implementations§
impl Freeze for ZoneCountCondition
impl RefUnwindSafe for ZoneCountCondition
impl Send for ZoneCountCondition
impl Sync for ZoneCountCondition
impl Unpin for ZoneCountCondition
impl UnwindSafe for ZoneCountCondition
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