pub struct ClientboundPlayScoreboardDisplayObjective {
pub position: i32,
pub name: String,
}Fields§
§position: i32§name: StringImplementations§
Source§impl ClientboundPlayScoreboardDisplayObjective
impl ClientboundPlayScoreboardDisplayObjective
Sourcepub const PACKET_ID: i32 = 92i32
pub const PACKET_ID: i32 = 92i32
The packet ID used by the registry to dispatch this packet.
This value is declared via #[packet(id = N)] and corresponds to
the VarInt packet ID read/written by the framing layer. The struct’s
own Encode/Decode does NOT include this ID — it only encodes the
packet’s payload fields.
Trait Implementations§
Source§impl Clone for ClientboundPlayScoreboardDisplayObjective
impl Clone for ClientboundPlayScoreboardDisplayObjective
Source§fn clone(&self) -> ClientboundPlayScoreboardDisplayObjective
fn clone(&self) -> ClientboundPlayScoreboardDisplayObjective
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 Default for ClientboundPlayScoreboardDisplayObjective
impl Default for ClientboundPlayScoreboardDisplayObjective
Source§fn default() -> ClientboundPlayScoreboardDisplayObjective
fn default() -> ClientboundPlayScoreboardDisplayObjective
Returns the “default value” for a type. Read more
Source§impl EncodedSize for ClientboundPlayScoreboardDisplayObjective
impl EncodedSize for ClientboundPlayScoreboardDisplayObjective
fn encoded_size(&self) -> usize
Source§impl PartialEq for ClientboundPlayScoreboardDisplayObjective
impl PartialEq for ClientboundPlayScoreboardDisplayObjective
Source§fn eq(&self, other: &ClientboundPlayScoreboardDisplayObjective) -> bool
fn eq(&self, other: &ClientboundPlayScoreboardDisplayObjective) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientboundPlayScoreboardDisplayObjective
Auto Trait Implementations§
impl Freeze for ClientboundPlayScoreboardDisplayObjective
impl RefUnwindSafe for ClientboundPlayScoreboardDisplayObjective
impl Send for ClientboundPlayScoreboardDisplayObjective
impl Sync for ClientboundPlayScoreboardDisplayObjective
impl Unpin for ClientboundPlayScoreboardDisplayObjective
impl UnsafeUnpin for ClientboundPlayScoreboardDisplayObjective
impl UnwindSafe for ClientboundPlayScoreboardDisplayObjective
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