#[non_exhaustive]pub struct RevokeSubscriptionRequest {
pub name: String,
pub revoke_commercial: bool,
/* private fields */
}Expand description
Message for revoking a subscription.
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. Resource name of the subscription to revoke. e.g. projects/123/locations/us/subscriptions/456
revoke_commercial: boolOptional. If the subscription is commercial then this field must be set to true, otherwise a failure is thrown. This acts as a safety guard to avoid revoking commercial subscriptions accidentally.
Implementations§
Trait Implementations§
Source§impl Clone for RevokeSubscriptionRequest
impl Clone for RevokeSubscriptionRequest
Source§fn clone(&self) -> RevokeSubscriptionRequest
fn clone(&self) -> RevokeSubscriptionRequest
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 RevokeSubscriptionRequest
impl Debug for RevokeSubscriptionRequest
Source§impl Default for RevokeSubscriptionRequest
impl Default for RevokeSubscriptionRequest
Source§fn default() -> RevokeSubscriptionRequest
fn default() -> RevokeSubscriptionRequest
Returns the “default value” for a type. Read more
Source§impl Message for RevokeSubscriptionRequest
impl Message for RevokeSubscriptionRequest
impl StructuralPartialEq for RevokeSubscriptionRequest
Auto Trait Implementations§
impl Freeze for RevokeSubscriptionRequest
impl RefUnwindSafe for RevokeSubscriptionRequest
impl Send for RevokeSubscriptionRequest
impl Sync for RevokeSubscriptionRequest
impl Unpin for RevokeSubscriptionRequest
impl UnwindSafe for RevokeSubscriptionRequest
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