pub struct AbilityStoneCompatibility {
pub required_any_of: Vec<AbilityTag>,
pub forbidden: Vec<AbilityTag>,
}Expand description
Which abilities a support accepts, as a predicate over AbilityTags.
required_any_of empty = Any. forbidden expresses the doc’s
“Any except Channelled” form and composes with the required set.
Fields§
§required_any_of: Vec<AbilityTag>§forbidden: Vec<AbilityTag>Implementations§
Trait Implementations§
Source§impl Clone for AbilityStoneCompatibility
impl Clone for AbilityStoneCompatibility
Source§fn clone(&self) -> AbilityStoneCompatibility
fn clone(&self) -> AbilityStoneCompatibility
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 AbilityStoneCompatibility
impl Debug for AbilityStoneCompatibility
Source§impl Default for AbilityStoneCompatibility
impl Default for AbilityStoneCompatibility
Source§fn default() -> AbilityStoneCompatibility
fn default() -> AbilityStoneCompatibility
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AbilityStoneCompatibility
impl<'de> Deserialize<'de> for AbilityStoneCompatibility
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 JsonSchema for AbilityStoneCompatibility
impl JsonSchema for AbilityStoneCompatibility
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 Tsify for AbilityStoneCompatibility
impl Tsify for AbilityStoneCompatibility
const DECL: &'static str = "/**\n * Which abilities a support accepts, as a predicate over [`AbilityTag`]s.\n *\n * `required_any_of` empty = `Any`. `forbidden` expresses the doc\\\'s\n * \\\"Any except Channelled\\\" form and composes with the required set.\n */\nexport interface AbilityStoneCompatibility {\n required_any_of: AbilityTag[];\n forbidden: AbilityTag[];\n}"
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 Eq for AbilityStoneCompatibility
impl StructuralPartialEq for AbilityStoneCompatibility
Auto Trait Implementations§
impl Freeze for AbilityStoneCompatibility
impl RefUnwindSafe for AbilityStoneCompatibility
impl Send for AbilityStoneCompatibility
impl Sync for AbilityStoneCompatibility
impl Unpin for AbilityStoneCompatibility
impl UnwindSafe for AbilityStoneCompatibility
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