#[non_exhaustive]pub struct GetGuildAuditLog {
pub user_id: Option<UserId>,
pub action_type: Option<AuditLogEvent>,
pub before: Option<AuditLogEntryId>,
pub after: Option<AuditLogEntryId>,
pub limit: Option<u8>,
}Expand description
The query of Get Guild Audit Log.
Entries come newest first, or oldest first with after (after the
smallest ID, e.g. AuditLogEntryId::new(1), starts from the oldest).
discord.js counterpart: GuildAuditLogsFetchOptions.
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.user_id: Option<UserId>Only entries of actions by this user.
action_type: Option<AuditLogEvent>Only entries of this kind of action.
before: Option<AuditLogEntryId>Entries older than this one.
after: Option<AuditLogEntryId>Entries newer than this one.
limit: Option<u8>The page size (1-100, default 50).
Trait Implementations§
Source§impl Clone for GetGuildAuditLog
impl Clone for GetGuildAuditLog
impl Copy for GetGuildAuditLog
Source§impl Debug for GetGuildAuditLog
impl Debug for GetGuildAuditLog
Source§impl Default for GetGuildAuditLog
impl Default for GetGuildAuditLog
impl Eq for GetGuildAuditLog
Source§impl Hash for GetGuildAuditLog
impl Hash for GetGuildAuditLog
Source§impl PartialEq for GetGuildAuditLog
impl PartialEq for GetGuildAuditLog
impl StructuralPartialEq for GetGuildAuditLog
Auto Trait Implementations§
impl Freeze for GetGuildAuditLog
impl RefUnwindSafe for GetGuildAuditLog
impl Send for GetGuildAuditLog
impl Sync for GetGuildAuditLog
impl Unpin for GetGuildAuditLog
impl UnsafeUnpin for GetGuildAuditLog
impl UnwindSafe for GetGuildAuditLog
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