pub struct IdCard {
pub display_name: String,
pub data: Option<OpaqueData>,
}Expand description
Simple meta data for an ID card.
Fields§
§display_name: StringThe name the player wants to be displayed as.
data: Option<OpaqueData>Optional opaque data specific to the game.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IdCard
impl<'de> Deserialize<'de> for IdCard
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 IdCard
impl RefUnwindSafe for IdCard
impl Send for IdCard
impl Sync for IdCard
impl Unpin for IdCard
impl UnsafeUnpin for IdCard
impl UnwindSafe for IdCard
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