#[non_exhaustive]pub struct ReportRequest {
pub service_name: String,
pub service_config_id: String,
pub operations: Vec<AttributeContext>,
/* private fields */
}
Expand description
Request message for the Report 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.
operations: Vec<AttributeContext>
Describes the list of operations to be reported. Each operation is represented as an AttributeContext, and contains all attributes around an API access.
Implementations§
Source§impl ReportRequest
impl ReportRequest
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_operations<T, V>(self, v: T) -> Self
pub fn set_operations<T, V>(self, v: T) -> Self
Sets the value of operations.
Trait Implementations§
Source§impl Clone for ReportRequest
impl Clone for ReportRequest
Source§fn clone(&self) -> ReportRequest
fn clone(&self) -> ReportRequest
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 ReportRequest
impl Debug for ReportRequest
Source§impl Default for ReportRequest
impl Default for ReportRequest
Source§fn default() -> ReportRequest
fn default() -> ReportRequest
Returns the “default value” for a type. Read more
Source§impl Message for ReportRequest
impl Message for ReportRequest
Source§impl PartialEq for ReportRequest
impl PartialEq for ReportRequest
impl StructuralPartialEq for ReportRequest
Auto Trait Implementations§
impl Freeze for ReportRequest
impl RefUnwindSafe for ReportRequest
impl Send for ReportRequest
impl Sync for ReportRequest
impl Unpin for ReportRequest
impl UnwindSafe for ReportRequest
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