pub enum SingleConditionNode {
SpellKnown(SpellKnownConditionNode),
Aura(AuraConditionNode),
Specialization(SpecializationConditionNode),
PlayerCondition(PlayerConditionNode),
Expression(ExpressionConditionNode),
}Expand description
A single condition in a predicate.
Variants§
SpellKnown(SpellKnownConditionNode)
Aura(AuraConditionNode)
Specialization(SpecializationConditionNode)
PlayerCondition(PlayerConditionNode)
Expression(ExpressionConditionNode)
Trait Implementations§
Source§impl Clone for SingleConditionNode
impl Clone for SingleConditionNode
Source§fn clone(&self) -> SingleConditionNode
fn clone(&self) -> SingleConditionNode
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 SingleConditionNode
impl Debug for SingleConditionNode
Source§impl<'de> Deserialize<'de> for SingleConditionNode
impl<'de> Deserialize<'de> for SingleConditionNode
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 PartialEq for SingleConditionNode
impl PartialEq for SingleConditionNode
Source§impl Serialize for SingleConditionNode
impl Serialize for SingleConditionNode
Source§impl Tsify for SingleConditionNode
impl Tsify for SingleConditionNode
const DECL: &'static str = "/**\n * A single condition in a predicate.\n */\nexport type SingleConditionNode = ({ condType: \"spellKnown\" } & SpellKnownConditionNode) | ({ condType: \"aura\" } & AuraConditionNode) | ({ condType: \"specialization\" } & SpecializationConditionNode) | ({ condType: \"playerCondition\" } & PlayerConditionNode) | ({ condType: \"expression\" } & ExpressionConditionNode);"
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 StructuralPartialEq for SingleConditionNode
Auto Trait Implementations§
impl Freeze for SingleConditionNode
impl RefUnwindSafe for SingleConditionNode
impl Send for SingleConditionNode
impl Sync for SingleConditionNode
impl Unpin for SingleConditionNode
impl UnsafeUnpin for SingleConditionNode
impl UnwindSafe for SingleConditionNode
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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