pub struct AbilityStoneSocketSettings {
pub side: WorldSide,
pub unlock_ability_level: i64,
}Expand description
One ability socket: its side and the ability level that opens it.
The SIDE lives here, not on the stone — the same stone fits any socket, and
only the sockets matching the currently active [WorldSide] are in effect.
Fields§
§side: WorldSide§unlock_ability_level: i64Trait Implementations§
Source§impl Clone for AbilityStoneSocketSettings
impl Clone for AbilityStoneSocketSettings
Source§fn clone(&self) -> AbilityStoneSocketSettings
fn clone(&self) -> AbilityStoneSocketSettings
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 AbilityStoneSocketSettings
impl Debug for AbilityStoneSocketSettings
Source§impl<'de> Deserialize<'de> for AbilityStoneSocketSettings
impl<'de> Deserialize<'de> for AbilityStoneSocketSettings
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 AbilityStoneSocketSettings
impl JsonSchema for AbilityStoneSocketSettings
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 AbilityStoneSocketSettings
impl Tsify for AbilityStoneSocketSettings
const DECL: &'static str = "/**\n * One ability socket: its side and the ability level that opens it.\n *\n * The SIDE lives here, not on the stone \u{2014} the same stone fits any socket, and\n * only the sockets matching the currently active [`WorldSide`] are in effect.\n */\nexport interface AbilityStoneSocketSettings {\n side: WorldSide;\n unlock_ability_level: number;\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>
Auto Trait Implementations§
impl Freeze for AbilityStoneSocketSettings
impl RefUnwindSafe for AbilityStoneSocketSettings
impl Send for AbilityStoneSocketSettings
impl Sync for AbilityStoneSocketSettings
impl Unpin for AbilityStoneSocketSettings
impl UnwindSafe for AbilityStoneSocketSettings
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