pub struct OpponentState {
pub name: String,
pub card_count: usize,
pub completed_books: Vec<CompleteBook>,
}Fields§
§name: String§card_count: usize§completed_books: Vec<CompleteBook>Trait Implementations§
Source§impl Clone for OpponentState
impl Clone for OpponentState
Source§fn clone(&self) -> OpponentState
fn clone(&self) -> OpponentState
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 Debug for OpponentState
impl Debug for OpponentState
Source§impl<'de> Deserialize<'de> for OpponentState
impl<'de> Deserialize<'de> for OpponentState
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
Auto Trait Implementations§
impl Freeze for OpponentState
impl RefUnwindSafe for OpponentState
impl Send for OpponentState
impl Sync for OpponentState
impl Unpin for OpponentState
impl UnsafeUnpin for OpponentState
impl UnwindSafe for OpponentState
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