pub enum CustomValueCondition {
KeyUnset {
key: String,
},
KeyEquals {
key: String,
value: i64,
},
KeysEqual {
left: String,
right: String,
},
}Expand description
Условие над custom_values персонажа. Отсутствующий ключ ведёт себя как
«не установлен»: KeyUnset совпадает, KeyEquals — нет, а в KeysEqual
два отсутствующих ключа равны (как () == () в старых скриптах).
Variants§
Trait Implementations§
Source§impl Clone for CustomValueCondition
impl Clone for CustomValueCondition
Source§fn clone(&self) -> CustomValueCondition
fn clone(&self) -> CustomValueCondition
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 CustomValueCondition
impl Debug for CustomValueCondition
Source§impl<'de> Deserialize<'de> for CustomValueCondition
impl<'de> Deserialize<'de> for CustomValueCondition
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 CustomValueCondition
impl JsonSchema for CustomValueCondition
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 CustomValueCondition
impl PartialEq for CustomValueCondition
Source§impl Serialize for CustomValueCondition
impl Serialize for CustomValueCondition
Source§impl Tsify for CustomValueCondition
impl Tsify for CustomValueCondition
const DECL: &'static str = "/**\n * \u{423}\u{441}\u{43b}\u{43e}\u{432}\u{438}\u{435} \u{43d}\u{430}\u{434} `custom_values` \u{43f}\u{435}\u{440}\u{441}\u{43e}\u{43d}\u{430}\u{436}\u{430}. \u{41e}\u{442}\u{441}\u{443}\u{442}\u{441}\u{442}\u{432}\u{443}\u{44e}\u{449}\u{438}\u{439} \u{43a}\u{43b}\u{44e}\u{447} \u{432}\u{435}\u{434}\u{451}\u{442} \u{441}\u{435}\u{431}\u{44f} \u{43a}\u{430}\u{43a}\n * \u{ab}\u{43d}\u{435} \u{443}\u{441}\u{442}\u{430}\u{43d}\u{43e}\u{432}\u{43b}\u{435}\u{43d}\u{bb}: `KeyUnset` \u{441}\u{43e}\u{432}\u{43f}\u{430}\u{434}\u{430}\u{435}\u{442}, `KeyEquals` \u{2014} \u{43d}\u{435}\u{442}, \u{430} \u{432} `KeysEqual`\n * \u{434}\u{432}\u{430} \u{43e}\u{442}\u{441}\u{443}\u{442}\u{441}\u{442}\u{432}\u{443}\u{44e}\u{449}\u{438}\u{445} \u{43a}\u{43b}\u{44e}\u{447}\u{430} \u{440}\u{430}\u{432}\u{43d}\u{44b} (\u{43a}\u{430}\u{43a} `() == ()` \u{432} \u{441}\u{442}\u{430}\u{440}\u{44b}\u{445} \u{441}\u{43a}\u{440}\u{438}\u{43f}\u{442}\u{430}\u{445}).\n */\nexport type CustomValueCondition = { KeyUnset: { key: string } } | { KeyEquals: { key: string; value: number } } | { KeysEqual: { left: string; right: string } };"
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 CustomValueCondition
impl StructuralPartialEq for CustomValueCondition
Auto Trait Implementations§
impl Freeze for CustomValueCondition
impl RefUnwindSafe for CustomValueCondition
impl Send for CustomValueCondition
impl Sync for CustomValueCondition
impl Unpin for CustomValueCondition
impl UnwindSafe for CustomValueCondition
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