pub struct CombatSnapshot {
pub id: Uuid,
pub seq: u64,
pub state: CombatState,
}Expand description
The current state of a combat as of log position seq.
Fields§
§id: Uuid§seq: u64§state: CombatStateTrait Implementations§
Source§impl Clone for CombatSnapshot
impl Clone for CombatSnapshot
Source§fn clone(&self) -> CombatSnapshot
fn clone(&self) -> CombatSnapshot
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 CombatSnapshot
impl ComposeSchema for CombatSnapshot
Source§impl Debug for CombatSnapshot
impl Debug for CombatSnapshot
Source§impl<'de> Deserialize<'de> for CombatSnapshot
impl<'de> Deserialize<'de> for CombatSnapshot
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 CombatSnapshot
impl PartialEq for CombatSnapshot
Source§fn eq(&self, other: &CombatSnapshot) -> bool
fn eq(&self, other: &CombatSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CombatSnapshot
impl Serialize for CombatSnapshot
Source§impl ToSchema for CombatSnapshot
impl ToSchema for CombatSnapshot
impl Eq for CombatSnapshot
impl StructuralPartialEq for CombatSnapshot
Auto Trait Implementations§
impl Freeze for CombatSnapshot
impl RefUnwindSafe for CombatSnapshot
impl Send for CombatSnapshot
impl Sync for CombatSnapshot
impl Unpin for CombatSnapshot
impl UnsafeUnpin for CombatSnapshot
impl UnwindSafe for CombatSnapshot
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.