pub struct FriendRemovedEventData {
pub player: Box<Player>,
pub friend: Box<Player>,
}Expand description
FriendRemovedEventData : The data associated with the friendship.
Fields§
§player: Box<Player>§friend: Box<Player>Implementations§
Source§impl FriendRemovedEventData
impl FriendRemovedEventData
Sourcepub fn new(player: Player, friend: Player) -> FriendRemovedEventData
pub fn new(player: Player, friend: Player) -> FriendRemovedEventData
The data associated with the friendship.
Trait Implementations§
Source§impl Clone for FriendRemovedEventData
impl Clone for FriendRemovedEventData
Source§fn clone(&self) -> FriendRemovedEventData
fn clone(&self) -> FriendRemovedEventData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FriendRemovedEventData
impl Debug for FriendRemovedEventData
Source§impl Default for FriendRemovedEventData
impl Default for FriendRemovedEventData
Source§fn default() -> FriendRemovedEventData
fn default() -> FriendRemovedEventData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FriendRemovedEventData
impl<'de> Deserialize<'de> for FriendRemovedEventData
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 PartialEq for FriendRemovedEventData
impl PartialEq for FriendRemovedEventData
Source§impl Serialize for FriendRemovedEventData
impl Serialize for FriendRemovedEventData
impl StructuralPartialEq for FriendRemovedEventData
Auto Trait Implementations§
impl Freeze for FriendRemovedEventData
impl RefUnwindSafe for FriendRemovedEventData
impl Send for FriendRemovedEventData
impl Sync for FriendRemovedEventData
impl Unpin for FriendRemovedEventData
impl UnsafeUnpin for FriendRemovedEventData
impl UnwindSafe for FriendRemovedEventData
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