#[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
The Guild’s incident’s data.
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>The time that invites get enabled again.
dms_disabled_until: Option<Timestamp>The time that dms get enabled again.
dm_spam_detected_at: Option<Timestamp>The time when elevated dm activity was triggered.
raid_detected_at: Option<Timestamp>The time when raid alerts were triggered.
Trait Implementations§
Source§impl Clone for IncidentsData
impl Clone for IncidentsData
Source§fn clone(&self) -> IncidentsData
fn clone(&self) -> IncidentsData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
Source§impl Serialize for IncidentsData
impl Serialize for IncidentsData
impl Copy for IncidentsData
Auto Trait Implementations§
impl Freeze for IncidentsData
impl RefUnwindSafe for IncidentsData
impl Send for IncidentsData
impl Sync for IncidentsData
impl Unpin 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