#[non_exhaustive]pub struct IncidentsData {
pub invites_disabled_until: Option<Timestamp>,
pub dms_disabled_until: Option<Timestamp>,
pub dm_spam_detected_at: Option<Timestamp>,
pub raid_detected_at: Option<Timestamp>,
}Expand description
Safety incidents of a guild: paused invites or DMs and detected raids or DM spam.
discord.js counterpart: IncidentActions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.invites_disabled_until: Option<Timestamp>When invites are enabled again.
dms_disabled_until: Option<Timestamp>When direct messages between members are enabled again.
dm_spam_detected_at: Option<Timestamp>When DM spam was detected.
raid_detected_at: Option<Timestamp>When a raid was detected.
Trait Implementations§
Source§impl Clone for IncidentsData
impl Clone for IncidentsData
impl Copy for IncidentsData
Source§impl Debug for IncidentsData
impl Debug for IncidentsData
Source§impl<'de> Deserialize<'de> for IncidentsData
impl<'de> Deserialize<'de> for IncidentsData
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 Eq for IncidentsData
Source§impl Hash for IncidentsData
impl Hash for IncidentsData
Source§impl PartialEq for IncidentsData
impl PartialEq for IncidentsData
Source§impl Serialize for IncidentsData
impl Serialize for IncidentsData
impl StructuralPartialEq for IncidentsData
Auto Trait Implementations§
impl Forget for IncidentsData
impl Freeze for IncidentsData
impl Move for IncidentsData
impl RefUnwindSafe for IncidentsData
impl Send for IncidentsData
impl Sync for IncidentsData
impl Unpin for IncidentsData
impl UnsafeUnpin for IncidentsData
impl UnwindSafe for IncidentsData
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