Struct gapi_grpc::google::cloud::billing::budgets::v1::budget_service_client::BudgetServiceClient[][src]

pub struct BudgetServiceClient<T> { /* fields omitted */ }

BudgetService stores Cloud Billing budgets, which define a budget plan and rules to execute as we track spend against that plan.

Implementations

impl BudgetServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> BudgetServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn create_budget(
    &mut self,
    request: impl IntoRequest<CreateBudgetRequest>
) -> Result<Response<Budget>, Status>
[src]

Creates a new budget. See Quotas and limits for more information on the limits of the number of budgets you can create.

pub async fn update_budget(
    &mut self,
    request: impl IntoRequest<UpdateBudgetRequest>
) -> Result<Response<Budget>, Status>
[src]

Updates a budget and returns the updated budget.

WARNING: There are some fields exposed on the Google Cloud Console that aren’t available on this API. Budget fields that are not exposed in this API will not be changed by this method.

pub async fn get_budget(
    &mut self,
    request: impl IntoRequest<GetBudgetRequest>
) -> Result<Response<Budget>, Status>
[src]

Returns a budget.

WARNING: There are some fields exposed on the Google Cloud Console that aren’t available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.

pub async fn list_budgets(
    &mut self,
    request: impl IntoRequest<ListBudgetsRequest>
) -> Result<Response<ListBudgetsResponse>, Status>
[src]

Returns a list of budgets for a billing account.

WARNING: There are some fields exposed on the Google Cloud Console that aren’t available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.

pub async fn delete_budget(
    &mut self,
    request: impl IntoRequest<DeleteBudgetRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a budget. Returns successfully if already deleted.

Trait Implementations

impl<T: Clone> Clone for BudgetServiceClient<T>[src]

impl<T> Debug for BudgetServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for BudgetServiceClient<T>

impl<T> Send for BudgetServiceClient<T> where
    T: Send

impl<T> Sync for BudgetServiceClient<T> where
    T: Sync

impl<T> Unpin for BudgetServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for BudgetServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]