#[non_exhaustive]pub struct ListRUMEventsOptionalParams {
pub filter_query: Option<String>,
pub filter_from: Option<DateTime<Utc>>,
pub filter_to: Option<DateTime<Utc>>,
pub sort: Option<RUMSort>,
pub page_cursor: Option<String>,
pub page_limit: Option<i32>,
}
Expand description
ListRUMEventsOptionalParams is a struct for passing parameters to the method RUMAPI::list_rum_events
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.filter_query: Option<String>
Search query following RUM syntax.
filter_from: Option<DateTime<Utc>>
Minimum timestamp for requested events.
filter_to: Option<DateTime<Utc>>
Maximum timestamp for requested events.
sort: Option<RUMSort>
Order of events in results.
page_cursor: Option<String>
List following results with a cursor provided in the previous query.
page_limit: Option<i32>
Maximum number of events in the response.
Implementations§
Source§impl ListRUMEventsOptionalParams
impl ListRUMEventsOptionalParams
Sourcepub fn filter_query(self, value: String) -> Self
pub fn filter_query(self, value: String) -> Self
Search query following RUM syntax.
Sourcepub fn filter_from(self, value: DateTime<Utc>) -> Self
pub fn filter_from(self, value: DateTime<Utc>) -> Self
Minimum timestamp for requested events.
Sourcepub fn page_cursor(self, value: String) -> Self
pub fn page_cursor(self, value: String) -> Self
List following results with a cursor provided in the previous query.
Sourcepub fn page_limit(self, value: i32) -> Self
pub fn page_limit(self, value: i32) -> Self
Maximum number of events in the response.
Examples found in repository?
examples/v2_rum_ListRUMEvents_2680821282.rs (line 13)
9async fn main() {
10 let configuration = datadog::Configuration::new();
11 let api = RUMAPI::with_config(configuration);
12 let response =
13 api.list_rum_events_with_pagination(ListRUMEventsOptionalParams::default().page_limit(2));
14 pin_mut!(response);
15 while let Some(resp) = response.next().await {
16 if let Ok(value) = resp {
17 println!("{:#?}", value);
18 } else {
19 println!("{:#?}", resp.unwrap_err());
20 }
21 }
22}
Trait Implementations§
Source§impl Clone for ListRUMEventsOptionalParams
impl Clone for ListRUMEventsOptionalParams
Source§fn clone(&self) -> ListRUMEventsOptionalParams
fn clone(&self) -> ListRUMEventsOptionalParams
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 ListRUMEventsOptionalParams
impl Debug for ListRUMEventsOptionalParams
Source§impl Default for ListRUMEventsOptionalParams
impl Default for ListRUMEventsOptionalParams
Source§fn default() -> ListRUMEventsOptionalParams
fn default() -> ListRUMEventsOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListRUMEventsOptionalParams
impl RefUnwindSafe for ListRUMEventsOptionalParams
impl Send for ListRUMEventsOptionalParams
impl Sync for ListRUMEventsOptionalParams
impl Unpin for ListRUMEventsOptionalParams
impl UnwindSafe for ListRUMEventsOptionalParams
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