pub struct TargetMapEntry {
pub id: u32,
pub label: String,
pub npc_id: Option<u32>,
pub group_id: Option<u32>,
pub enemy_tags: Vec<String>,
pub group_tags: Vec<String>,
}Expand description
Dictionary entry mapping a target id to a display label.
Fields§
§id: u32§label: String§npc_id: Option<u32>§group_id: Option<u32>Trait Implementations§
Source§impl Clone for TargetMapEntry
impl Clone for TargetMapEntry
Source§fn clone(&self) -> TargetMapEntry
fn clone(&self) -> TargetMapEntry
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 TargetMapEntry
impl Debug for TargetMapEntry
Source§impl Serialize for TargetMapEntry
impl Serialize for TargetMapEntry
Source§impl Tsify for TargetMapEntry
impl Tsify for TargetMapEntry
const DECL: &'static str = "/**\n * Dictionary entry mapping a target id to a display label.\n */\nexport interface TargetMapEntry {\n id: number;\n label: string;\n npc_id: number | undefined;\n group_id: number | undefined;\n enemy_tags: string[];\n group_tags: string[];\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 TargetMapEntry
impl RefUnwindSafe for TargetMapEntry
impl Send for TargetMapEntry
impl Sync for TargetMapEntry
impl Unpin for TargetMapEntry
impl UnsafeUnpin for TargetMapEntry
impl UnwindSafe for TargetMapEntry
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