pub enum AbilityTargetType {
Enemy,
Ally,
Zelf,
}Expand description
Whom an ability can target. Sourced from the ability content target_type
and consumed by the fight target-selection (is_valid_target / try_cast).
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AbilityTargetType
impl Clone for AbilityTargetType
Source§fn clone(&self) -> AbilityTargetType
fn clone(&self) -> AbilityTargetType
Returns a copy 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 AbilityTargetType
impl Debug for AbilityTargetType
Source§impl Default for AbilityTargetType
impl Default for AbilityTargetType
Source§fn default() -> AbilityTargetType
fn default() -> AbilityTargetType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AbilityTargetType
impl<'de> Deserialize<'de> for AbilityTargetType
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 Display for AbilityTargetType
impl Display for AbilityTargetType
Source§impl FromStr for AbilityTargetType
impl FromStr for AbilityTargetType
Source§impl Hash for AbilityTargetType
impl Hash for AbilityTargetType
Source§impl IntoEnumIterator for AbilityTargetType
impl IntoEnumIterator for AbilityTargetType
type Iterator = AbilityTargetTypeIter
fn iter() -> AbilityTargetTypeIter ⓘ
Source§impl JsonSchema for AbilityTargetType
impl JsonSchema for AbilityTargetType
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AbilityTargetType
impl PartialEq for AbilityTargetType
Source§impl Sequence for AbilityTargetType
impl Sequence for AbilityTargetType
Source§impl Serialize for AbilityTargetType
impl Serialize for AbilityTargetType
Source§impl TryFrom<&str> for AbilityTargetType
impl TryFrom<&str> for AbilityTargetType
Source§impl Tsify for AbilityTargetType
impl Tsify for AbilityTargetType
const DECL: &'static str = "/**\n * Whom an ability can target. Sourced from the ability content `target_type`\n * and consumed by the fight target-selection (`is_valid_target` / `try_cast`).\n */\ndeclare namespace AbilityTargetType {\n export type Enemy = \"Enemy\";\n export type Ally = \"Ally\";\n export type Self = \"Self\";\n}\n\n/**\n * Whom an ability can target. Sourced from the ability content `target_type`\n * and consumed by the fight target-selection (`is_valid_target` / `try_cast`).\n */\nexport type AbilityTargetType = \"Enemy\" | \"Ally\" | \"Self\";"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
impl Copy for AbilityTargetType
impl Eq for AbilityTargetType
impl StructuralPartialEq for AbilityTargetType
Auto Trait Implementations§
impl Freeze for AbilityTargetType
impl RefUnwindSafe for AbilityTargetType
impl Send for AbilityTargetType
impl Sync for AbilityTargetType
impl Unpin for AbilityTargetType
impl UnwindSafe for AbilityTargetType
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