pub struct GrantedAbilityInstance {
pub grant_id: u64,
pub target_player: u8,
pub target_slot: u8,
pub target_instance_id: CardInstanceId,
pub spec: AbilitySpec,
pub compiled_effects: Vec<EffectSpec>,
pub expires_turn_number: u32,
}Expand description
Runtime granted ability attached to a specific stage card instance.
Fields§
§grant_id: u64Stable grant id.
target_player: u8Target player seat.
target_slot: u8Target stage slot index.
target_instance_id: CardInstanceIdTarget card instance id.
spec: AbilitySpecAbility spec (template + conditions + cost).
compiled_effects: Vec<EffectSpec>Compiled effect specs derived from spec.
expires_turn_number: u32Turn number at which this grant expires during end-phase cleanup.
Trait Implementations§
Source§impl Clone for GrantedAbilityInstance
impl Clone for GrantedAbilityInstance
Source§fn clone(&self) -> GrantedAbilityInstance
fn clone(&self) -> GrantedAbilityInstance
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 GrantedAbilityInstance
impl Debug for GrantedAbilityInstance
Source§impl<'de> Deserialize<'de> for GrantedAbilityInstance
impl<'de> Deserialize<'de> for GrantedAbilityInstance
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 GrantedAbilityInstance
impl Hash for GrantedAbilityInstance
Auto Trait Implementations§
impl Freeze for GrantedAbilityInstance
impl RefUnwindSafe for GrantedAbilityInstance
impl Send for GrantedAbilityInstance
impl Sync for GrantedAbilityInstance
impl Unpin for GrantedAbilityInstance
impl UnwindSafe for GrantedAbilityInstance
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