pub struct PetReceived {
pub bought_as_gift: bool,
pub pet: PetData,
}
Fields§
§bought_as_gift: bool
§pet: PetData
Trait Implementations§
source§impl BaseParser for PetReceived
impl BaseParser for PetReceived
fn parse(packet: &mut HPacket) -> Self
fn append_to_packet(&self, packet: &mut HPacket)
fn get_direction() -> HDirection
fn get_packet_name() -> String
source§impl Clone for PetReceived
impl Clone for PetReceived
source§fn clone(&self) -> PetReceived
fn clone(&self) -> PetReceived
Returns a copy 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 PetReceived
impl Debug for PetReceived
source§impl Default for PetReceived
impl Default for PetReceived
source§fn default() -> PetReceived
fn default() -> PetReceived
Returns the “default value” for a type. Read more
source§impl PacketVariable for PetReceived
impl PacketVariable for PetReceived
source§impl PartialEq<PetReceived> for PetReceived
impl PartialEq<PetReceived> for PetReceived
source§fn eq(&self, other: &PetReceived) -> bool
fn eq(&self, other: &PetReceived) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PetReceived
Auto Trait Implementations§
impl RefUnwindSafe for PetReceived
impl Send for PetReceived
impl Sync for PetReceived
impl Unpin for PetReceived
impl UnwindSafe for PetReceived
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