pub enum TeamAction {
Create(TeamActionCreateSpec),
Remove,
UpdateInfo(TeamActionUpdateInfoSpec),
AddPlayers(TeamActionPlayerList),
RemovePlayers(TeamActionPlayerList),
}
Variants§
Create(TeamActionCreateSpec)
Remove
UpdateInfo(TeamActionUpdateInfoSpec)
AddPlayers(TeamActionPlayerList)
RemovePlayers(TeamActionPlayerList)
Implementations§
Source§impl TeamAction
impl TeamAction
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: u8, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> u8
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for TeamAction
impl Clone for TeamAction
Source§fn clone(&self) -> TeamAction
fn clone(&self) -> TeamAction
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 TeamAction
impl Debug for TeamAction
Source§impl Deserialize for TeamAction
impl Deserialize for TeamAction
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for TeamAction
impl PartialEq for TeamAction
Source§impl Serialize for TeamAction
impl Serialize for TeamAction
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for TeamAction
Auto Trait Implementations§
impl Freeze for TeamAction
impl RefUnwindSafe for TeamAction
impl Send for TeamAction
impl Sync for TeamAction
impl Unpin for TeamAction
impl UnwindSafe for TeamAction
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