pub struct ClientboundPlayTradeList {
pub window_id: i32,
pub trades: Vec<ClientboundPlayTradeListTrades>,
pub villager_level: i32,
pub experience: i32,
pub is_regular_villager: bool,
pub can_restock: bool,
}Fields§
§window_id: i32§trades: Vec<ClientboundPlayTradeListTrades>§villager_level: i32§experience: i32§is_regular_villager: bool§can_restock: boolImplementations§
Source§impl ClientboundPlayTradeList
impl ClientboundPlayTradeList
Sourcepub const PACKET_ID: i32 = 46i32
pub const PACKET_ID: i32 = 46i32
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 ClientboundPlayTradeList
impl Clone for ClientboundPlayTradeList
Source§fn clone(&self) -> ClientboundPlayTradeList
fn clone(&self) -> ClientboundPlayTradeList
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 ClientboundPlayTradeList
impl Debug for ClientboundPlayTradeList
Source§impl Default for ClientboundPlayTradeList
impl Default for ClientboundPlayTradeList
Source§fn default() -> ClientboundPlayTradeList
fn default() -> ClientboundPlayTradeList
Returns the “default value” for a type. Read more
Source§impl Encode for ClientboundPlayTradeList
impl Encode for ClientboundPlayTradeList
Source§impl EncodedSize for ClientboundPlayTradeList
impl EncodedSize for ClientboundPlayTradeList
fn encoded_size(&self) -> usize
Source§impl PartialEq for ClientboundPlayTradeList
impl PartialEq for ClientboundPlayTradeList
impl StructuralPartialEq for ClientboundPlayTradeList
Auto Trait Implementations§
impl Freeze for ClientboundPlayTradeList
impl RefUnwindSafe for ClientboundPlayTradeList
impl Send for ClientboundPlayTradeList
impl Sync for ClientboundPlayTradeList
impl Unpin for ClientboundPlayTradeList
impl UnsafeUnpin for ClientboundPlayTradeList
impl UnwindSafe for ClientboundPlayTradeList
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