pub struct CostPaymentState {
pub controller: u8,
pub source_id: CardId,
pub source_instance_id: CardInstanceId,
pub source_slot: Option<u8>,
pub ability_index: u8,
pub remaining: AbilityCost,
pub current_step: Option<CostStepKind>,
pub outcome: CostPaymentOutcome,
}Expand description
State for a multi-step cost payment.
Fields§
§controller: u8Controlling player paying the cost.
source_id: CardIdSource card id of the ability being paid for.
source_instance_id: CardInstanceIdSource card instance id (stable per-game).
source_slot: Option<u8>Optional source slot when the source is on stage.
ability_index: u8Ability index on the source card.
remaining: AbilityCostRemaining cost to pay.
current_step: Option<CostStepKind>Currently active staged step, if any.
outcome: CostPaymentOutcomeOutcome to execute once the cost is fully paid.
Trait Implementations§
Source§impl Clone for CostPaymentState
impl Clone for CostPaymentState
Source§fn clone(&self) -> CostPaymentState
fn clone(&self) -> CostPaymentState
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 CostPaymentState
impl Debug for CostPaymentState
Source§impl<'de> Deserialize<'de> for CostPaymentState
impl<'de> Deserialize<'de> for CostPaymentState
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 CostPaymentState
impl Hash for CostPaymentState
Auto Trait Implementations§
impl Freeze for CostPaymentState
impl RefUnwindSafe for CostPaymentState
impl Send for CostPaymentState
impl Sync for CostPaymentState
impl Unpin for CostPaymentState
impl UnwindSafe for CostPaymentState
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