#[non_exhaustive]pub struct AllocateQuotaRequest {
pub service_name: String,
pub allocate_operation: Option<QuotaOperation>,
pub service_config_id: String,
}Expand description
Request message for the AllocateQuota 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.service_name: StringName of the service as specified in the service configuration. For example,
"pubsub.googleapis.com".
See [google.api.Service][google.api.Service] for the definition of a service name.
allocate_operation: Option<QuotaOperation>Operation that describes the quota allocation.
service_config_id: StringSpecifies which version of service configuration should be used to process the request. If unspecified or no matching version can be found, the latest one will be used.
Implementations§
Source§impl AllocateQuotaRequest
impl AllocateQuotaRequest
pub fn new() -> Self
Sourcepub fn set_service_name<T: Into<String>>(self, v: T) -> Self
pub fn set_service_name<T: Into<String>>(self, v: T) -> Self
Sets the value of service_name.
Sourcepub fn set_allocate_operation<T: Into<Option<QuotaOperation>>>(
self,
v: T,
) -> Self
pub fn set_allocate_operation<T: Into<Option<QuotaOperation>>>( self, v: T, ) -> Self
Sets the value of allocate_operation.
Sourcepub fn set_service_config_id<T: Into<String>>(self, v: T) -> Self
pub fn set_service_config_id<T: Into<String>>(self, v: T) -> Self
Sets the value of service_config_id.
Trait Implementations§
Source§impl Clone for AllocateQuotaRequest
impl Clone for AllocateQuotaRequest
Source§fn clone(&self) -> AllocateQuotaRequest
fn clone(&self) -> AllocateQuotaRequest
Returns a copy 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 AllocateQuotaRequest
impl Debug for AllocateQuotaRequest
Source§impl Default for AllocateQuotaRequest
impl Default for AllocateQuotaRequest
Source§fn default() -> AllocateQuotaRequest
fn default() -> AllocateQuotaRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AllocateQuotaRequestwhere
AllocateQuotaRequest: Default,
impl<'de> Deserialize<'de> for AllocateQuotaRequestwhere
AllocateQuotaRequest: Default,
Source§fn 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
Source§impl Message for AllocateQuotaRequest
impl Message for AllocateQuotaRequest
Source§impl PartialEq for AllocateQuotaRequest
impl PartialEq for AllocateQuotaRequest
Source§impl Serialize for AllocateQuotaRequest
impl Serialize for AllocateQuotaRequest
impl StructuralPartialEq for AllocateQuotaRequest
Auto Trait Implementations§
impl Freeze for AllocateQuotaRequest
impl RefUnwindSafe for AllocateQuotaRequest
impl Send for AllocateQuotaRequest
impl Sync for AllocateQuotaRequest
impl Unpin for AllocateQuotaRequest
impl UnwindSafe for AllocateQuotaRequest
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