#[non_exhaustive]pub struct GetMonthlyCustomReportsOptionalParams {
pub page_size: Option<i64>,
pub page_number: Option<i64>,
pub sort_dir: Option<UsageSortDirection>,
pub sort: Option<UsageSort>,
}
Expand description
GetMonthlyCustomReportsOptionalParams is a struct for passing parameters to the method UsageMeteringAPI::get_monthly_custom_reports
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>
The number of files to return in the response [default=60].
page_number: Option<i64>
The identifier of the first page to return. This parameter is used for the pagination feature [default=0]
.
sort_dir: Option<UsageSortDirection>
The direction to sort by: [desc, asc]
.
sort: Option<UsageSort>
The field to sort by: [computed_on, size, start_date, end_date]
.
Implementations§
Source§impl GetMonthlyCustomReportsOptionalParams
impl GetMonthlyCustomReportsOptionalParams
Sourcepub fn page_size(self, value: i64) -> Self
pub fn page_size(self, value: i64) -> Self
The number of files to return in the response [default=60].
Sourcepub fn page_number(self, value: i64) -> Self
pub fn page_number(self, value: i64) -> Self
The identifier of the first page to return. This parameter is used for the pagination feature [default=0]
.
Sourcepub fn sort_dir(self, value: UsageSortDirection) -> Self
pub fn sort_dir(self, value: UsageSortDirection) -> Self
The direction to sort by: [desc, asc]
.
Trait Implementations§
Source§impl Clone for GetMonthlyCustomReportsOptionalParams
impl Clone for GetMonthlyCustomReportsOptionalParams
Source§fn clone(&self) -> GetMonthlyCustomReportsOptionalParams
fn clone(&self) -> GetMonthlyCustomReportsOptionalParams
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 GetMonthlyCustomReportsOptionalParams
impl Default for GetMonthlyCustomReportsOptionalParams
Source§fn default() -> GetMonthlyCustomReportsOptionalParams
fn default() -> GetMonthlyCustomReportsOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetMonthlyCustomReportsOptionalParams
impl RefUnwindSafe for GetMonthlyCustomReportsOptionalParams
impl Send for GetMonthlyCustomReportsOptionalParams
impl Sync for GetMonthlyCustomReportsOptionalParams
impl Unpin for GetMonthlyCustomReportsOptionalParams
impl UnwindSafe for GetMonthlyCustomReportsOptionalParams
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