#[non_exhaustive]pub struct CheckRequest {
pub service_name: String,
pub service_config_id: String,
pub attributes: Option<AttributeContext>,
pub resources: Vec<ResourceInfo>,
pub flags: 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: String
The service name as specified in its service configuration. For example,
"pubsub.googleapis.com"
.
See google.api.Service for the definition of a service name.
service_config_id: String
Specifies the version of the service configuration that should be used to process the request. Must not be empty. Set this field to ‘latest’ to specify using the latest configuration.
attributes: Option<AttributeContext>
Describes attributes about the operation being executed by the service.
resources: Vec<ResourceInfo>
Describes the resources and the policies applied to each resource.
flags: String
Optional. Contains a comma-separated list of flags.
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_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.
Sourcepub fn set_attributes<T>(self, v: T) -> Selfwhere
T: Into<AttributeContext>,
pub fn set_attributes<T>(self, v: T) -> Selfwhere
T: Into<AttributeContext>,
Sets the value of attributes.
Sourcepub fn set_or_clear_attributes<T>(self, v: Option<T>) -> Selfwhere
T: Into<AttributeContext>,
pub fn set_or_clear_attributes<T>(self, v: Option<T>) -> Selfwhere
T: Into<AttributeContext>,
Sets or clears the value of attributes.
Sourcepub fn set_resources<T, V>(self, v: T) -> Self
pub fn set_resources<T, V>(self, v: T) -> Self
Sets the value of resources.
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