pub struct MonsterSummary {
pub id: Uuid,
pub name: String,
pub size: String,
pub kind: String,
pub challenge: String,
pub hit_points: u16,
pub max_hit_points: u16,
pub xp: u32,
pub armor_class: u8,
pub source: String,
pub shared: bool,
}Expand description
For listing and completing names.
Fields§
§id: Uuid§name: String§size: String§kind: String§challenge: String§hit_points: u16§max_hit_points: u16What its hit dice can come to at most, which it joins a fight with.
xp: u32Experience points, from its challenge rating if the stat block doesn’t say.
armor_class: u8§source: StringIn the shared library rather than the campaign’s own.
Trait Implementations§
Source§impl Clone for MonsterSummary
impl Clone for MonsterSummary
Source§fn clone(&self) -> MonsterSummary
fn clone(&self) -> MonsterSummary
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 moreSource§impl ComposeSchema for MonsterSummary
impl ComposeSchema for MonsterSummary
Source§impl Debug for MonsterSummary
impl Debug for MonsterSummary
Source§impl<'de> Deserialize<'de> for MonsterSummary
impl<'de> Deserialize<'de> for MonsterSummary
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 From<&Monster> for MonsterSummary
impl From<&Monster> for MonsterSummary
Source§impl PartialEq for MonsterSummary
impl PartialEq for MonsterSummary
Source§fn eq(&self, other: &MonsterSummary) -> bool
fn eq(&self, other: &MonsterSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MonsterSummary
impl Serialize for MonsterSummary
Source§impl ToSchema for MonsterSummary
impl ToSchema for MonsterSummary
impl Eq for MonsterSummary
impl StructuralPartialEq for MonsterSummary
Auto Trait Implementations§
impl Freeze for MonsterSummary
impl RefUnwindSafe for MonsterSummary
impl Send for MonsterSummary
impl Sync for MonsterSummary
impl Unpin for MonsterSummary
impl UnsafeUnpin for MonsterSummary
impl UnwindSafe for MonsterSummary
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.