pub struct OnPlayerBannedEvent {
pub by_player: u32,
pub name: &'static str,
pub player_index: u32,
pub player_name: &'static str,
pub reason: &'static str,
pub tick: u32,
}Expand description
Called when a player is banned.
Fields§
§by_player: u32§name: &'static str§player_index: u32§player_name: &'static str§reason: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerBannedEvent
impl Clone for OnPlayerBannedEvent
Source§fn clone(&self) -> OnPlayerBannedEvent
fn clone(&self) -> OnPlayerBannedEvent
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 moreimpl Copy for OnPlayerBannedEvent
Source§impl Debug for OnPlayerBannedEvent
impl Debug for OnPlayerBannedEvent
Source§impl Default for OnPlayerBannedEvent
impl Default for OnPlayerBannedEvent
Source§fn default() -> OnPlayerBannedEvent
fn default() -> OnPlayerBannedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnPlayerBannedEvent
impl PartialEq for OnPlayerBannedEvent
impl StructuralPartialEq for OnPlayerBannedEvent
Auto Trait Implementations§
impl Freeze for OnPlayerBannedEvent
impl RefUnwindSafe for OnPlayerBannedEvent
impl Send for OnPlayerBannedEvent
impl Sync for OnPlayerBannedEvent
impl Unpin for OnPlayerBannedEvent
impl UnsafeUnpin for OnPlayerBannedEvent
impl UnwindSafe for OnPlayerBannedEvent
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