pub struct PortalRarity {
pub id: PortalRarityId,
pub item_rarity_id: ItemRarityId,
pub icon_path: String,
}Expand description
Portal-specific presentation mapped to an existing item-rarity tier.
Name, color, and ordering remain owned by the linked item rarity so the two catalogs cannot drift.
Fields§
§id: PortalRarityIdGlobally unique identifier of this portal-rarity record.
item_rarity_id: ItemRarityIdItem rarity that supplies this portal tier’s name, color, and order.
icon_path: StringUnity address of the portal sprite for this rarity tier.
Trait Implementations§
Source§impl Clone for PortalRarity
impl Clone for PortalRarity
Source§fn clone(&self) -> PortalRarity
fn clone(&self) -> PortalRarity
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 PortalRarity
impl Debug for PortalRarity
Source§impl<'de> Deserialize<'de> for PortalRarity
impl<'de> Deserialize<'de> for PortalRarity
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 PortalRarity
impl JsonSchema for PortalRarity
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 PortalRarity
impl PartialEq for PortalRarity
Source§impl Serialize for PortalRarity
impl Serialize for PortalRarity
Source§impl Tsify for PortalRarity
impl Tsify for PortalRarity
const DECL: &'static str = "/**\n * Portal-specific presentation mapped to an existing item-rarity tier.\n *\n * Name, color, and ordering remain owned by the linked item rarity so the two\n * catalogs cannot drift.\n */\nexport interface PortalRarity {\n /**\n * Globally unique identifier of this portal-rarity record.\n */\n id: PortalRarityId;\n /**\n * Item rarity that supplies this portal tier\\\'s name, color, and order.\n */\n item_rarity_id: ItemRarityId;\n /**\n * Unity address of the portal sprite for this rarity tier.\n */\n icon_path: string;\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 PortalRarity
impl StructuralPartialEq for PortalRarity
Auto Trait Implementations§
impl Freeze for PortalRarity
impl RefUnwindSafe for PortalRarity
impl Send for PortalRarity
impl Sync for PortalRarity
impl Unpin for PortalRarity
impl UnwindSafe for PortalRarity
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more