pub enum UpdateScoreAction {
Upsert(VarInt),
Remove,
}
Variants§
Implementations§
Source§impl UpdateScoreAction
impl UpdateScoreAction
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 UpdateScoreAction
impl Clone for UpdateScoreAction
Source§fn clone(&self) -> UpdateScoreAction
fn clone(&self) -> UpdateScoreAction
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 UpdateScoreAction
impl Debug for UpdateScoreAction
Source§impl Deserialize for UpdateScoreAction
impl Deserialize for UpdateScoreAction
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for UpdateScoreAction
impl PartialEq for UpdateScoreAction
Source§impl Serialize for UpdateScoreAction
impl Serialize for UpdateScoreAction
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for UpdateScoreAction
Auto Trait Implementations§
impl Freeze for UpdateScoreAction
impl RefUnwindSafe for UpdateScoreAction
impl Send for UpdateScoreAction
impl Sync for UpdateScoreAction
impl Unpin for UpdateScoreAction
impl UnwindSafe for UpdateScoreAction
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