pub struct AlternativeCostEntry {Show 13 fields
pub cost: Cost,
pub cost_string: String,
pub is_ability: bool,
pub is_spell: bool,
pub x_alternative: Option<String>,
pub announce: Option<String>,
pub mana_restriction: Option<String>,
pub zone_restriction: Option<ZoneType>,
pub stack_description: Option<String>,
pub cost_desc: Option<String>,
pub description: String,
pub named: Option<String>,
pub is_own_alt_cost: bool,
}Expand description
Descriptor for an alternative cost produced by a static ability.
Fields§
§cost: CostThe parsed alternative cost (Cost$ param with ConvertedManaCost replaced).
cost_string: StringThe raw cost template string (after ConvertedManaCost substitution).
is_ability: boolWhether the original SA is an ability (not a spell).
is_spell: boolWhether the original SA is a spell.
x_alternative: Option<String>Propagated XAlternative param, if any.
announce: Option<String>Propagated Announce param, if any.
mana_restriction: Option<String>Propagated ManaRestriction param, if any.
zone_restriction: Option<ZoneType>Zone restriction from the static ability’s ActiveZones (single zone case).
stack_description: Option<String>StackDescription override, if any.
cost_desc: Option<String>CostDesc override, if any.
description: StringDescription text for the alternative cost.
named: Option<String>Named override — custom card alternative cost naming.
is_own_alt_cost: boolWhether this is an AltCost from the source card itself (adds OptionalCost.AltCost).
Trait Implementations§
Source§impl Clone for AlternativeCostEntry
impl Clone for AlternativeCostEntry
Source§fn clone(&self) -> AlternativeCostEntry
fn clone(&self) -> AlternativeCostEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AlternativeCostEntry
impl RefUnwindSafe for AlternativeCostEntry
impl Send for AlternativeCostEntry
impl Sync for AlternativeCostEntry
impl Unpin for AlternativeCostEntry
impl UnsafeUnpin for AlternativeCostEntry
impl UnwindSafe for AlternativeCostEntry
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.