pub struct EventType(/* private fields */);
Expand description
Type of mod event that was triggered.
Implementations§
source§impl EventType
impl EventType
sourcepub const MODFILE_CHANGED: Self = _
pub const MODFILE_CHANGED: Self = _
Primary file changed, the mod should be updated.
sourcepub const MOD_AVAILABLE: Self = _
pub const MOD_AVAILABLE: Self = _
Mod is marked as accepted and public.
sourcepub const MOD_UNAVAILABLE: Self = _
pub const MOD_UNAVAILABLE: Self = _
Mod is marked as not accepted, deleted or hidden.
sourcepub const MOD_EDITED: Self = _
pub const MOD_EDITED: Self = _
Mod has been updated.
sourcepub const MOD_DELETED: Self = _
pub const MOD_DELETED: Self = _
Mod has been permanently deleted.
sourcepub const MOD_TEAM_CHANGED: Self = _
pub const MOD_TEAM_CHANGED: Self = _
User has joined or left the mod team.
sourcepub const MOD_COMMENT_ADDED: Self = _
pub const MOD_COMMENT_ADDED: Self = _
A comment has been published for a mod.
sourcepub const MOD_COMMENT_DELETED: Self = _
pub const MOD_COMMENT_DELETED: Self = _
A comment has been deleted from 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