pub struct UnitMapEntry {
pub kind: String,
pub id: u32,
pub label: String,
pub target_id: Option<u32>,
}Expand description
Collision-free tagged unit dictionary entry.
Fields§
§kind: String§id: u32§label: String§target_id: Option<u32>Trait Implementations§
Source§impl Clone for UnitMapEntry
impl Clone for UnitMapEntry
Source§fn clone(&self) -> UnitMapEntry
fn clone(&self) -> UnitMapEntry
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 UnitMapEntry
impl Debug for UnitMapEntry
Source§impl Serialize for UnitMapEntry
impl Serialize for UnitMapEntry
Source§impl Tsify for UnitMapEntry
impl Tsify for UnitMapEntry
const DECL: &'static str = "/**\n * Collision-free tagged unit dictionary entry.\n */\nexport interface UnitMapEntry {\n kind: string;\n id: number;\n label: string;\n target_id: number | undefined;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Auto Trait Implementations§
impl Freeze for UnitMapEntry
impl RefUnwindSafe for UnitMapEntry
impl Send for UnitMapEntry
impl Sync for UnitMapEntry
impl Unpin for UnitMapEntry
impl UnsafeUnpin for UnitMapEntry
impl UnwindSafe for UnitMapEntry
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