#[non_exhaustive]pub struct ModifyGuildIncidentActions {
pub invites_disabled_until: Patch<Timestamp>,
pub dms_disabled_until: Patch<Timestamp>,
}Expand description
The body of Modify Guild Incident Actions.
Both actions last at most 24 hours; Patch::Clear ends one.
discord.js counterpart: RESTPutAPIGuildIncidentActionsJSONBody (discord-api-types).
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: Patch<Timestamp>Until when invites are disabled.
dms_disabled_until: Patch<Timestamp>Until when direct messages between members are disabled.
Trait Implementations§
Source§impl Clone for ModifyGuildIncidentActions
impl Clone for ModifyGuildIncidentActions
impl Copy for ModifyGuildIncidentActions
Source§impl Debug for ModifyGuildIncidentActions
impl Debug for ModifyGuildIncidentActions
Source§impl Default for ModifyGuildIncidentActions
impl Default for ModifyGuildIncidentActions
impl Eq for ModifyGuildIncidentActions
Source§impl Hash for ModifyGuildIncidentActions
impl Hash for ModifyGuildIncidentActions
impl StructuralPartialEq for ModifyGuildIncidentActions
Auto Trait Implementations§
impl Forget for ModifyGuildIncidentActions
impl Freeze for ModifyGuildIncidentActions
impl Move for ModifyGuildIncidentActions
impl RefUnwindSafe for ModifyGuildIncidentActions
impl Send for ModifyGuildIncidentActions
impl Sync for ModifyGuildIncidentActions
impl Unpin for ModifyGuildIncidentActions
impl UnsafeUnpin for ModifyGuildIncidentActions
impl UnwindSafe for ModifyGuildIncidentActions
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