#[non_exhaustive]pub struct GetTeamEventsArg {
pub limit: u32,
pub account_id: Option<AccountId>,
pub time: Option<TimeRange>,
pub category: Option<EventCategory>,
pub event_type: Option<EventTypeArg>,
}Available on crate feature
dbx_team_log only.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.limit: u32The maximal number of results to return per call. Note that some calls may not return
limit number of events, and may even return no events, even with has_more set to true.
In this case, callers should fetch again using
get_events_continue().
account_id: Option<AccountId>Filter the events by account ID. Return only events with this account_id as either Actor, Context, or Participants.
time: Option<TimeRange>Filter by time range.
category: Option<EventCategory>Filter the returned events to a single category. Note that category shouldn’t be provided together with event_type.
event_type: Option<EventTypeArg>Filter the returned events to a single event type. Note that event_type shouldn’t be provided together with category.
Implementations§
Source§impl GetTeamEventsArg
impl GetTeamEventsArg
pub fn with_limit(self, value: u32) -> Self
pub fn with_account_id(self, value: AccountId) -> Self
pub fn with_time(self, value: TimeRange) -> Self
pub fn with_category(self, value: EventCategory) -> Self
pub fn with_event_type(self, value: EventTypeArg) -> Self
Trait Implementations§
Source§impl Clone for GetTeamEventsArg
impl Clone for GetTeamEventsArg
Source§fn clone(&self) -> GetTeamEventsArg
fn clone(&self) -> GetTeamEventsArg
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 Debug for GetTeamEventsArg
impl Debug for GetTeamEventsArg
Source§impl Default for GetTeamEventsArg
impl Default for GetTeamEventsArg
Source§impl<'de> Deserialize<'de> for GetTeamEventsArg
impl<'de> Deserialize<'de> for GetTeamEventsArg
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GetTeamEventsArg
impl PartialEq for GetTeamEventsArg
Source§fn eq(&self, other: &GetTeamEventsArg) -> bool
fn eq(&self, other: &GetTeamEventsArg) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GetTeamEventsArg
impl Serialize for GetTeamEventsArg
impl Eq for GetTeamEventsArg
impl StructuralPartialEq for GetTeamEventsArg
Auto Trait Implementations§
impl Freeze for GetTeamEventsArg
impl RefUnwindSafe for GetTeamEventsArg
impl Send for GetTeamEventsArg
impl Sync for GetTeamEventsArg
impl Unpin for GetTeamEventsArg
impl UnsafeUnpin for GetTeamEventsArg
impl UnwindSafe for GetTeamEventsArg
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.