Struct LootDamage
#[non_exhaustive]pub struct LootDamage {
pub kind: String,
pub source: Option<LootEntity>,
pub direct: Option<LootEntity>,
}Expand description
Damage-source facts captured for a loot roll.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: StringDamage type identifier.
source: Option<LootEntity>Attacker, such as a projectile’s shooter.
direct: Option<LootEntity>Direct attacker, such as the projectile itself.
Trait Implementations§
§impl Clone for LootDamage
impl Clone for LootDamage
§fn clone(&self) -> LootDamage
fn clone(&self) -> LootDamage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for LootDamage
impl Debug for LootDamage
§impl Default for LootDamage
impl Default for LootDamage
§fn default() -> LootDamage
fn default() -> LootDamage
Returns the “default value” for a type. Read more
§impl PartialEq for LootDamage
impl PartialEq for LootDamage
impl StructuralPartialEq for LootDamage
Auto Trait Implementations§
impl Freeze for LootDamage
impl RefUnwindSafe for LootDamage
impl Send for LootDamage
impl Sync for LootDamage
impl Unpin for LootDamage
impl UnsafeUnpin for LootDamage
impl UnwindSafe for LootDamage
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