#[non_exhaustive]pub struct CheckRequest {
pub service_name: String,
pub operation: Option<Operation>,
pub service_config_id: String,
/* private fields */
}Expand description
Request message for the Check 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: StringThe service name as specified in its service configuration. For example,
"pubsub.googleapis.com".
See google.api.Service for the definition of a service name.
operation: Option<Operation>The operation to be checked.
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 CheckRequest
impl CheckRequest
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_operation<T>(self, v: T) -> Self
pub fn set_operation<T>(self, v: T) -> Self
Sets the value of operation.
Sourcepub fn set_or_clear_operation<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_operation<T>(self, v: Option<T>) -> Self
Sets or clears the value of 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 CheckRequest
impl Clone for CheckRequest
Source§fn clone(&self) -> CheckRequest
fn clone(&self) -> CheckRequest
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 CheckRequest
impl Debug for CheckRequest
Source§impl Default for CheckRequest
impl Default for CheckRequest
Source§fn default() -> CheckRequest
fn default() -> CheckRequest
Returns the “default value” for a type. Read more
Source§impl Message for CheckRequest
impl Message for CheckRequest
Source§impl PartialEq for CheckRequest
impl PartialEq for CheckRequest
impl StructuralPartialEq for CheckRequest
Auto Trait Implementations§
impl Freeze for CheckRequest
impl RefUnwindSafe for CheckRequest
impl Send for CheckRequest
impl Sync for CheckRequest
impl Unpin for CheckRequest
impl UnwindSafe for CheckRequest
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