pub struct AbilityDef {
pub kind: AbilityKind,
pub timing: Option<AbilityTiming>,
pub effects: Vec<EffectTemplate>,
pub targets: Vec<TargetTemplate>,
pub cost: AbilityCost,
pub target_card_type: Option<CardType>,
pub target_trait: Option<u16>,
pub target_level_max: Option<u8>,
pub target_cost_max: Option<u8>,
pub target_limit: Option<u8>,
}Fields§
§kind: AbilityKind§timing: Option<AbilityTiming>§effects: Vec<EffectTemplate>§targets: Vec<TargetTemplate>§cost: AbilityCost§target_card_type: Option<CardType>§target_trait: Option<u16>§target_level_max: Option<u8>§target_cost_max: Option<u8>§target_limit: Option<u8>Implementations§
Trait Implementations§
Source§impl Clone for AbilityDef
impl Clone for AbilityDef
Source§fn clone(&self) -> AbilityDef
fn clone(&self) -> AbilityDef
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 AbilityDef
impl Debug for AbilityDef
Source§impl<'de> Deserialize<'de> for AbilityDef
impl<'de> Deserialize<'de> for AbilityDef
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 AbilityDef
impl Hash for AbilityDef
Source§impl PartialEq for AbilityDef
impl PartialEq for AbilityDef
Source§impl Serialize for AbilityDef
impl Serialize for AbilityDef
impl Eq for AbilityDef
impl StructuralPartialEq for AbilityDef
Auto Trait Implementations§
impl Freeze for AbilityDef
impl RefUnwindSafe for AbilityDef
impl Send for AbilityDef
impl Sync for AbilityDef
impl Unpin for AbilityDef
impl UnwindSafe for AbilityDef
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