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
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