pub struct DamageByTargetView {
pub target_id: u32,
pub total_damage: f64,
pub damage_pct: Option<f64>,
}Expand description
Damage dealt to a single target, with derived share of total damage.
Fields§
§target_id: u32§total_damage: f64§damage_pct: Option<f64>Trait Implementations§
Source§impl Clone for DamageByTargetView
impl Clone for DamageByTargetView
Source§fn clone(&self) -> DamageByTargetView
fn clone(&self) -> DamageByTargetView
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 DamageByTargetView
impl Debug for DamageByTargetView
Source§impl Serialize for DamageByTargetView
impl Serialize for DamageByTargetView
Source§impl Tsify for DamageByTargetView
impl Tsify for DamageByTargetView
const DECL: &'static str = "/**\n * Damage dealt to a single target, with derived share of total damage.\n */\nexport interface DamageByTargetView {\n target_id: number;\n total_damage: number;\n damage_pct: 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 DamageByTargetView
impl RefUnwindSafe for DamageByTargetView
impl Send for DamageByTargetView
impl Sync for DamageByTargetView
impl Unpin for DamageByTargetView
impl UnsafeUnpin for DamageByTargetView
impl UnwindSafe for DamageByTargetView
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