#[non_exhaustive]pub struct ReportRequest {
pub service_name: String,
pub operations: Vec<Operation>,
pub service_config_id: String,
/* private fields */
}Expand description
Request message for the Report method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
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.
operations: Vec<Operation>Operations to be reported.
Typically the service should report one operation per request. Putting multiple operations into a single request is allowed, but should be used only when multiple operations are natually available at the time of the report.
There is no limit on the number of operations in the same ReportRequest, however the ReportRequest size should be no larger than 1MB. See ReportResponse.report_errors for partial failure behavior.
service_config_id: StringSpecifies which version of service config 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 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_operations<T, V>(self, v: T) -> Self
pub fn set_operations<T, V>(self, v: T) -> Self
Sets the value of operations.
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 ReportRequest
impl Clone for ReportRequest
Source§fn clone(&self) -> ReportRequest
fn clone(&self) -> ReportRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more