#[non_exhaustive]pub struct ListTestsOptionalParams {
pub page_size: Option<i64>,
pub page_number: Option<i64>,
}
Expand description
ListTestsOptionalParams is a struct for passing parameters to the method SyntheticsAPI::list_tests
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.page_size: Option<i64>
Used for pagination. The number of tests returned in the page.
page_number: Option<i64>
Used for pagination. Which page you want to retrieve. Starts at zero.
Implementations§
Source§impl ListTestsOptionalParams
impl ListTestsOptionalParams
Sourcepub fn page_size(self, value: i64) -> Self
pub fn page_size(self, value: i64) -> Self
Used for pagination. The number of tests returned in the page.
Examples found in repository?
examples/v1_synthetics_ListTests_1938827783.rs (line 13)
10async fn main() {
11 let configuration = datadog::Configuration::new();
12 let api = SyntheticsAPI::with_config(configuration);
13 let response = api.list_tests_with_pagination(ListTestsOptionalParams::default().page_size(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}
Sourcepub fn page_number(self, value: i64) -> Self
pub fn page_number(self, value: i64) -> Self
Used for pagination. Which page you want to retrieve. Starts at zero.
Trait Implementations§
Source§impl Clone for ListTestsOptionalParams
impl Clone for ListTestsOptionalParams
Source§fn clone(&self) -> ListTestsOptionalParams
fn clone(&self) -> ListTestsOptionalParams
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 ListTestsOptionalParams
impl Debug for ListTestsOptionalParams
Source§impl Default for ListTestsOptionalParams
impl Default for ListTestsOptionalParams
Source§fn default() -> ListTestsOptionalParams
fn default() -> ListTestsOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListTestsOptionalParams
impl RefUnwindSafe for ListTestsOptionalParams
impl Send for ListTestsOptionalParams
impl Sync for ListTestsOptionalParams
impl Unpin for ListTestsOptionalParams
impl UnwindSafe for ListTestsOptionalParams
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