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 StructuralPartialEq for Npc
Auto Trait Implementations§
impl Freeze for Npc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more