#[non_exhaustive]pub struct ListContainerImagesOptionalParams {
pub filter_tags: Option<String>,
pub group_by: Option<String>,
pub sort: Option<String>,
pub page_size: Option<i32>,
pub page_cursor: Option<String>,
}
Expand description
ListContainerImagesOptionalParams is a struct for passing parameters to the method ContainerImagesAPI::list_container_images
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.Comma-separated list of tags to filter Container Images by.
group_by: Option<String>
Comma-separated list of tags to group Container Images by.
sort: Option<String>
Attribute to sort Container Images by.
page_size: Option<i32>
Maximum number of results returned.
page_cursor: Option<String>
String to query the next page of results.
This key is provided with each valid response from the API in meta.pagination.next_cursor
.
Implementations§
Source§impl ListContainerImagesOptionalParams
impl ListContainerImagesOptionalParams
Comma-separated list of tags to filter Container Images by.
Sourcepub fn group_by(self, value: String) -> Self
pub fn group_by(self, value: String) -> Self
Comma-separated list of tags to group Container Images by.
Examples found in repository?
examples/v2_container-images_ListContainerImages_3974828736.rs (line 12)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = ContainerImagesAPI::with_config(configuration);
10 let resp = api
11 .list_container_images(
12 ListContainerImagesOptionalParams::default().group_by("short_image".to_string()),
13 )
14 .await;
15 if let Ok(value) = resp {
16 println!("{:#?}", value);
17 } else {
18 println!("{:#?}", resp.unwrap_err());
19 }
20}
Sourcepub fn page_size(self, value: i32) -> Self
pub fn page_size(self, value: i32) -> Self
Maximum number of results returned.
Examples found in repository?
examples/v2_container-images_ListContainerImages_3088586393.rs (line 13)
9async fn main() {
10 let configuration = datadog::Configuration::new();
11 let api = ContainerImagesAPI::with_config(configuration);
12 let response = api.list_container_images_with_pagination(
13 ListContainerImagesOptionalParams::default().page_size(2),
14 );
15 pin_mut!(response);
16 while let Some(resp) = response.next().await {
17 if let Ok(value) = resp {
18 println!("{:#?}", value);
19 } else {
20 println!("{:#?}", resp.unwrap_err());
21 }
22 }
23}
Sourcepub fn page_cursor(self, value: String) -> Self
pub fn page_cursor(self, value: String) -> Self
String to query the next page of results.
This key is provided with each valid response from the API in meta.pagination.next_cursor
.
Trait Implementations§
Source§impl Clone for ListContainerImagesOptionalParams
impl Clone for ListContainerImagesOptionalParams
Source§fn clone(&self) -> ListContainerImagesOptionalParams
fn clone(&self) -> ListContainerImagesOptionalParams
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 Default for ListContainerImagesOptionalParams
impl Default for ListContainerImagesOptionalParams
Source§fn default() -> ListContainerImagesOptionalParams
fn default() -> ListContainerImagesOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListContainerImagesOptionalParams
impl RefUnwindSafe for ListContainerImagesOptionalParams
impl Send for ListContainerImagesOptionalParams
impl Sync for ListContainerImagesOptionalParams
impl Unpin for ListContainerImagesOptionalParams
impl UnwindSafe for ListContainerImagesOptionalParams
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