pub struct TalentTemplate {
pub id: TalentId,
pub name: I18nString,
pub description: I18nString,
pub description_values_script: Option<String>,
pub icon_url: String,
pub icon_path: String,
pub levels: Vec<TalentLevel>,
pub unlock_condition: TalentUnlockCondition,
pub position: TalentPosition,
}Expand description
Шаблон таланта
Fields§
§id: TalentId§name: I18nString§description: I18nString§description_values_script: Option<String>§icon_url: String§icon_path: String§levels: Vec<TalentLevel>§unlock_condition: TalentUnlockCondition§position: TalentPositionTrait Implementations§
Source§impl Clone for TalentTemplate
impl Clone for TalentTemplate
Source§fn clone(&self) -> TalentTemplate
fn clone(&self) -> TalentTemplate
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 TalentTemplate
impl Debug for TalentTemplate
Source§impl<'de> Deserialize<'de> for TalentTemplate
impl<'de> Deserialize<'de> for TalentTemplate
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 TalentTemplate
impl JsonSchema for TalentTemplate
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 Serialize for TalentTemplate
impl Serialize for TalentTemplate
Source§impl Tsify for TalentTemplate
impl Tsify for TalentTemplate
const DECL: &'static str = "/**\n * \u{428}\u{430}\u{431}\u{43b}\u{43e}\u{43d} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430}\n */\nexport interface TalentTemplate {\n id: TalentId;\n name: I18nString;\n description: I18nString;\n description_values_script: string | null;\n icon_url: string;\n icon_path: string;\n levels: TalentLevel[];\n unlock_condition: TalentUnlockCondition;\n position: TalentPosition;\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 TalentTemplate
impl RefUnwindSafe for TalentTemplate
impl Send for TalentTemplate
impl Sync for TalentTemplate
impl Unpin for TalentTemplate
impl UnwindSafe for TalentTemplate
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