pub struct PlayerAddActionSpec {
pub name: String,
pub properties: CountedArray<PlayerAddProperty, VarInt>,
pub game_mode: GameMode,
pub ping_ms: VarInt,
pub display_name: Option<Chat>,
}
Fields§
§name: String
§properties: CountedArray<PlayerAddProperty, VarInt>
§game_mode: GameMode
§ping_ms: VarInt
§display_name: Option<Chat>
Trait Implementations§
Source§impl Clone for PlayerAddActionSpec
impl Clone for PlayerAddActionSpec
Source§fn clone(&self) -> PlayerAddActionSpec
fn clone(&self) -> PlayerAddActionSpec
Returns a duplicate of the value. Read more
1.0.0 · 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 PlayerAddActionSpec
impl Debug for PlayerAddActionSpec
Source§impl Deserialize for PlayerAddActionSpec
impl Deserialize for PlayerAddActionSpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(String, CountedArray<PlayerAddProperty, VarInt>, GameMode, VarInt, Option<Chat>)> for PlayerAddActionSpec
impl From<(String, CountedArray<PlayerAddProperty, VarInt>, GameMode, VarInt, Option<Chat>)> for PlayerAddActionSpec
Source§impl From<PlayerAddActionSpec> for (String, CountedArray<PlayerAddProperty, VarInt>, GameMode, VarInt, Option<Chat>)
impl From<PlayerAddActionSpec> for (String, CountedArray<PlayerAddProperty, VarInt>, GameMode, VarInt, Option<Chat>)
Source§fn from(other: PlayerAddActionSpec) -> Self
fn from(other: PlayerAddActionSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlayerAddActionSpec
impl PartialEq for PlayerAddActionSpec
Source§impl Serialize for PlayerAddActionSpec
impl Serialize for PlayerAddActionSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for PlayerAddActionSpec
Auto Trait Implementations§
impl Freeze for PlayerAddActionSpec
impl RefUnwindSafe for PlayerAddActionSpec
impl Send for PlayerAddActionSpec
impl Sync for PlayerAddActionSpec
impl Unpin for PlayerAddActionSpec
impl UnwindSafe for PlayerAddActionSpec
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