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