pub struct EventType(/* private fields */);
Expand description
Type of user event that was triggered.
Implementations§
Source§impl EventType
impl EventType
Sourcepub const USER_TEAM_JOIN: Self
pub const USER_TEAM_JOIN: Self
User has joined a team.
Sourcepub const USER_TEAM_LEAVE: Self
pub const USER_TEAM_LEAVE: Self
User has left a team.
Sourcepub const USER_SUBSCRIBE: Self
pub const USER_SUBSCRIBE: Self
User has subscribed to a mod.
Sourcepub const USER_UNSUBSCRIBE: Self
pub const USER_UNSUBSCRIBE: Self
User has unsubscribed to a mod.
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventType
impl<'de> Deserialize<'de> for EventType
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
impl Copy for EventType
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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