Struct pso2packetlib::protocol::items::UpdatedInventoryItem
source · pub struct UpdatedInventoryItem {
pub uuid: u64,
pub new_amount: u16,
pub moved: u16,
}Expand description
Updated inventory item.
Fields§
§uuid: u64Items UUID.
new_amount: u16New items amount.
moved: u16Amount moved/deleted.
Trait Implementations§
source§impl Clone for UpdatedInventoryItem
impl Clone for UpdatedInventoryItem
source§fn clone(&self) -> UpdatedInventoryItem
fn clone(&self) -> UpdatedInventoryItem
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 UpdatedInventoryItem
impl Debug for UpdatedInventoryItem
source§impl Default for UpdatedInventoryItem
impl Default for UpdatedInventoryItem
source§fn default() -> UpdatedInventoryItem
fn default() -> UpdatedInventoryItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdatedInventoryItemwhere
UpdatedInventoryItem: Default,
impl<'de> Deserialize<'de> for UpdatedInventoryItemwhere
UpdatedInventoryItem: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HelperReadWrite for UpdatedInventoryItem
impl HelperReadWrite for UpdatedInventoryItem
source§fn read(
reader: &mut (impl Read + Seek),
packet_type: PacketType,
xor: u32,
sub: u32,
) -> Result<Self, PacketError>
fn read( reader: &mut (impl Read + Seek), packet_type: PacketType, xor: u32, sub: u32, ) -> Result<Self, PacketError>
Reads data from a stream.
source§fn write(
&self,
writer: &mut impl Write,
packet_type: PacketType,
xor: u32,
sub: u32,
) -> Result<(), PacketError>
fn write( &self, writer: &mut impl Write, packet_type: PacketType, xor: u32, sub: u32, ) -> Result<(), PacketError>
Writes data to a stream.
source§impl PartialEq for UpdatedInventoryItem
impl PartialEq for UpdatedInventoryItem
source§fn eq(&self, other: &UpdatedInventoryItem) -> bool
fn eq(&self, other: &UpdatedInventoryItem) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for UpdatedInventoryItem
impl Serialize for UpdatedInventoryItem
impl StructuralPartialEq for UpdatedInventoryItem
Auto Trait Implementations§
impl Freeze for UpdatedInventoryItem
impl RefUnwindSafe for UpdatedInventoryItem
impl Send for UpdatedInventoryItem
impl Sync for UpdatedInventoryItem
impl Unpin for UpdatedInventoryItem
impl UnwindSafe for UpdatedInventoryItem
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)