pub struct GoogleCloudBillingBudgetsV1Filter {
pub calendar_period: Option<String>,
pub credit_types: Option<Vec<String>>,
pub credit_types_treatment: Option<String>,
pub custom_period: Option<GoogleCloudBillingBudgetsV1CustomPeriod>,
pub labels: Option<HashMap<String, Vec<String>>>,
pub projects: Option<Vec<String>>,
pub services: Option<Vec<String>>,
pub subaccounts: Option<Vec<String>>,
}
Expand description
A filter for a budget, limiting the scope of the cost to calculate.
This type is not used in any activity, and only used as part of another schema.
Fields
calendar_period: Option<String>
Optional. Specifies to track usage for recurring calendar period. For example, assume that CalendarPeriod.QUARTER is set. The budget tracks usage from April 1 to June 30, when the current calendar month is April, May, June. After that, it tracks usage from July 1 to September 30 when the current calendar month is July, August, September, so on.
credit_types: Option<Vec<String>>
Optional. If Filter.credit_types_treatment is INCLUDE_SPECIFIED_CREDITS, this is a list of credit types to be subtracted from gross cost to determine the spend for threshold calculations. See a list of acceptable credit type values. If Filter.credit_types_treatment is not INCLUDE_SPECIFIED_CREDITS, this field must be empty.
credit_types_treatment: Option<String>
Optional. If not set, default behavior is INCLUDE_ALL_CREDITS
.
custom_period: Option<GoogleCloudBillingBudgetsV1CustomPeriod>
Optional. Specifies to track usage from any start date (required) to any end date (optional). This time period is static, it does not recur.
labels: Option<HashMap<String, Vec<String>>>
Optional. A single label and value pair specifying that usage from only this set of labeled resources should be included in the budget. If omitted, the report includes all labeled and unlabeled usage. An object containing a single "key": value
pair. Example: { "name": "wrench" }
. Currently, multiple entries or multiple values per entry are not allowed.
projects: Option<Vec<String>>
Optional. A set of projects of the form projects/{project}
, specifying that usage from only this set of projects should be included in the budget. If omitted, the report includes all usage for the billing account, regardless of which project the usage occurred on. Only zero or one project can be specified currently.
services: Option<Vec<String>>
Optional. A set of services of the form services/{service_id}
, specifying that usage from only this set of services should be included in the budget. If omitted, the report includes usage for all the services. The service names are available through the Catalog API: https://cloud.google.com/billing/v1/how-tos/catalog-api.
subaccounts: Option<Vec<String>>
Optional. A set of subaccounts of the form billingAccounts/{account_id}
, specifying that usage from only this set of subaccounts should be included in the budget. If a subaccount is set to the name of the parent account, usage from the parent account is included. If the field is omitted, the report includes usage from the parent account and all subaccounts, if they exist.
Trait Implementations
sourceimpl Clone for GoogleCloudBillingBudgetsV1Filter
impl Clone for GoogleCloudBillingBudgetsV1Filter
sourcefn clone(&self) -> GoogleCloudBillingBudgetsV1Filter
fn clone(&self) -> GoogleCloudBillingBudgetsV1Filter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for GoogleCloudBillingBudgetsV1Filter
impl Default for GoogleCloudBillingBudgetsV1Filter
sourcefn default() -> GoogleCloudBillingBudgetsV1Filter
fn default() -> GoogleCloudBillingBudgetsV1Filter
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GoogleCloudBillingBudgetsV1Filter
impl<'de> Deserialize<'de> for GoogleCloudBillingBudgetsV1Filter
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleCloudBillingBudgetsV1Filter
Auto Trait Implementations
impl RefUnwindSafe for GoogleCloudBillingBudgetsV1Filter
impl Send for GoogleCloudBillingBudgetsV1Filter
impl Sync for GoogleCloudBillingBudgetsV1Filter
impl Unpin for GoogleCloudBillingBudgetsV1Filter
impl UnwindSafe for GoogleCloudBillingBudgetsV1Filter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more