Struct gapi_grpc::google::cloud::billing::budgets::v1::budget_service_client::BudgetServiceClient [−][src]
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]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
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]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
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]
&mut self,
request: impl IntoRequest<CreateBudgetRequest>
) -> Result<Response<Budget>, Status>
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]
&mut self,
request: impl IntoRequest<UpdateBudgetRequest>
) -> Result<Response<Budget>, Status>
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]
&mut self,
request: impl IntoRequest<GetBudgetRequest>
) -> Result<Response<Budget>, Status>
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]
&mut self,
request: impl IntoRequest<ListBudgetsRequest>
) -> Result<Response<ListBudgetsResponse>, Status>
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]
&mut self,
request: impl IntoRequest<DeleteBudgetRequest>
) -> Result<Response<()>, Status>
Deletes a budget. Returns successfully if already deleted.
Trait Implementations
impl<T: Clone> Clone for BudgetServiceClient<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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,
T: Send,
impl<T> Sync for BudgetServiceClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for BudgetServiceClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for BudgetServiceClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,