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
source§impl PartialEq<&str> for EventType
impl PartialEq<&str> for EventType
source§impl PartialEq<EventType> for &str
impl PartialEq<EventType> for &str
source§impl PartialEq<EventType> for str
impl PartialEq<EventType> for str
source§impl PartialEq for EventType
impl PartialEq for EventType
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