#[non_exhaustive]pub struct DisableServiceRequest {
pub name: String,
pub disable_dependent_services: bool,
pub check_if_service_has_usage: CheckIfServiceHasUsage,
/* private fields */
}
Expand description
Request message for the DisableService
method.
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: String
Name of the consumer and service to disable the service on.
The enable and disable methods currently only support projects.
An example name would be:
projects/123/services/serviceusage.googleapis.com
where 123
is the
project number.
disable_dependent_services: bool
Indicates if services that are enabled and which depend on this service should also be disabled. If not set, an error will be generated if any enabled services depend on the service to be disabled. When set, the service, and any enabled services that depend on it, will be disabled together.
check_if_service_has_usage: CheckIfServiceHasUsage
Defines the behavior for checking service usage when disabling a service.
Implementations§
Source§impl DisableServiceRequest
impl DisableServiceRequest
pub fn new() -> Self
Sourcepub fn set_disable_dependent_services<T: Into<bool>>(self, v: T) -> Self
pub fn set_disable_dependent_services<T: Into<bool>>(self, v: T) -> Self
Sets the value of disable_dependent_services.
Sourcepub fn set_check_if_service_has_usage<T: Into<CheckIfServiceHasUsage>>(
self,
v: T,
) -> Self
pub fn set_check_if_service_has_usage<T: Into<CheckIfServiceHasUsage>>( self, v: T, ) -> Self
Sets the value of check_if_service_has_usage.
Trait Implementations§
Source§impl Clone for DisableServiceRequest
impl Clone for DisableServiceRequest
Source§fn clone(&self) -> DisableServiceRequest
fn clone(&self) -> DisableServiceRequest
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 Debug for DisableServiceRequest
impl Debug for DisableServiceRequest
Source§impl Default for DisableServiceRequest
impl Default for DisableServiceRequest
Source§fn default() -> DisableServiceRequest
fn default() -> DisableServiceRequest
Returns the “default value” for a type. Read more
Source§impl Message for DisableServiceRequest
impl Message for DisableServiceRequest
Source§impl PartialEq for DisableServiceRequest
impl PartialEq for DisableServiceRequest
impl StructuralPartialEq for DisableServiceRequest
Auto Trait Implementations§
impl Freeze for DisableServiceRequest
impl RefUnwindSafe for DisableServiceRequest
impl Send for DisableServiceRequest
impl Sync for DisableServiceRequest
impl Unpin for DisableServiceRequest
impl UnwindSafe for DisableServiceRequest
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