pub struct Npc {
pub level: u16,
pub disposition: i8,
pub reputation: i8,
pub rank: i8,
pub gold: i32,
pub padding: u8,
pub stats: Either<u16, NpcStats>,
}
Fields§
§level: u16
§disposition: i8
§reputation: i8
§rank: i8
§gold: i32
§padding: u8
§stats: Either<u16, NpcStats>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Npc
impl<'de> Deserialize<'de> for Npc
source§fn deserialize<D>(deserializer: D) -> Result<Npc, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Npc, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Npc
impl StructuralEq for Npc
impl StructuralPartialEq for Npc
Auto Trait Implementations§
impl RefUnwindSafe for Npc
impl Send for Npc
impl Sync for Npc
impl Unpin for Npc
impl UnwindSafe for Npc
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