#[non_exhaustive]pub struct QueryConfigurationLicenseUsageRequest {
pub name: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
/* private fields */
}Expand description
Message for requesting license usage per configuration.
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.name: StringRequired. The resource path of the Configuration.
start_time: Option<Timestamp>Required. The start time for retrieving the usage. If not specified, we will use the first day of the current billing period.
end_time: Option<Timestamp>Required. The end time for retrieving the usage. If not specified, we will use the last day of the current billing period.
Implementations§
Source§impl QueryConfigurationLicenseUsageRequest
impl QueryConfigurationLicenseUsageRequest
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
ⓘ
use wkt::Timestamp;
let x = QueryConfigurationLicenseUsageRequest::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
ⓘ
use wkt::Timestamp;
let x = QueryConfigurationLicenseUsageRequest::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = QueryConfigurationLicenseUsageRequest::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for QueryConfigurationLicenseUsageRequest
impl Clone for QueryConfigurationLicenseUsageRequest
Source§fn clone(&self) -> QueryConfigurationLicenseUsageRequest
fn clone(&self) -> QueryConfigurationLicenseUsageRequest
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 Default for QueryConfigurationLicenseUsageRequest
impl Default for QueryConfigurationLicenseUsageRequest
Source§fn default() -> QueryConfigurationLicenseUsageRequest
fn default() -> QueryConfigurationLicenseUsageRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for QueryConfigurationLicenseUsageRequest
impl PartialEq for QueryConfigurationLicenseUsageRequest
Source§fn eq(&self, other: &QueryConfigurationLicenseUsageRequest) -> bool
fn eq(&self, other: &QueryConfigurationLicenseUsageRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryConfigurationLicenseUsageRequest
Auto Trait Implementations§
impl Freeze for QueryConfigurationLicenseUsageRequest
impl RefUnwindSafe for QueryConfigurationLicenseUsageRequest
impl Send for QueryConfigurationLicenseUsageRequest
impl Sync for QueryConfigurationLicenseUsageRequest
impl Unpin for QueryConfigurationLicenseUsageRequest
impl UnsafeUnpin for QueryConfigurationLicenseUsageRequest
impl UnwindSafe for QueryConfigurationLicenseUsageRequest
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