pub struct AuditLogQuery<'a> {
pub user_id: Option<i64>,
pub action: Option<&'a str>,
pub entity_type: Option<&'a str>,
pub entity_id: Option<i64>,
pub after: Option<DateTime<Utc>>,
pub before: Option<DateTime<Utc>>,
pub limit: u64,
pub cursor: Option<(DateTime<Utc>, i64)>,
}Expand description
Product-neutral cursor query for audit logs sorted by (created_at, id) descending.
Fields§
§user_id: Option<i64>Optional actor user id filter.
action: Option<&'a str>Optional action wire value filter.
entity_type: Option<&'a str>Optional entity type wire value filter.
entity_id: Option<i64>Optional entity id filter.
after: Option<DateTime<Utc>>Optional inclusive lower created-at bound.
before: Option<DateTime<Utc>>Optional inclusive upper created-at bound.
limit: u64Requested page size. Clamped to 1..=200.
cursor: Option<(DateTime<Utc>, i64)>Cursor from the previous page, encoded as (created_at, id).
Trait Implementations§
Source§impl<'a> Clone for AuditLogQuery<'a>
impl<'a> Clone for AuditLogQuery<'a>
Source§fn clone(&self) -> AuditLogQuery<'a>
fn clone(&self) -> AuditLogQuery<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AuditLogQuery<'a>
impl<'a> Debug for AuditLogQuery<'a>
Source§impl<'a> PartialEq for AuditLogQuery<'a>
impl<'a> PartialEq for AuditLogQuery<'a>
Source§fn eq(&self, other: &AuditLogQuery<'a>) -> bool
fn eq(&self, other: &AuditLogQuery<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Copy for AuditLogQuery<'a>
impl<'a> Eq for AuditLogQuery<'a>
impl<'a> StructuralPartialEq for AuditLogQuery<'a>
Auto Trait Implementations§
impl<'a> Freeze for AuditLogQuery<'a>
impl<'a> RefUnwindSafe for AuditLogQuery<'a>
impl<'a> Send for AuditLogQuery<'a>
impl<'a> Sync for AuditLogQuery<'a>
impl<'a> Unpin for AuditLogQuery<'a>
impl<'a> UnsafeUnpin for AuditLogQuery<'a>
impl<'a> UnwindSafe for AuditLogQuery<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more