pub struct Book {
pub weight: f32,
pub value: u32,
pub flags: BookFlags,
pub skill: Either<Option<i32>, Skill>,
pub enchantment: u32,
}
Fields§
§weight: f32
§value: u32
§flags: BookFlags
§skill: Either<Option<i32>, Skill>
§enchantment: u32
Trait Implementations§
source§impl<'de> Deserialize<'de> for Book
impl<'de> Deserialize<'de> for Book
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Book
impl PartialEq for Book
impl Eq for Book
Auto Trait Implementations§
impl RefUnwindSafe for Book
impl Send for Book
impl Sync for Book
impl Unpin for Book
impl UnwindSafe for Book
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