#[non_exhaustive]pub struct ReportResponse {
pub report_errors: Vec<ReportError>,
pub service_config_id: String,
pub service_rollout_id: String,
/* private fields */
}Expand description
Response 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.report_errors: Vec<ReportError>Partial failures, one for each Operation in the request that failed
processing. There are three possible combinations of the RPC status:
- The combination of a successful RPC status and an empty
report_errorslist indicates a complete success where allOperationsin the request are processed successfully. - The combination of a successful RPC status and a non-empty
report_errorslist indicates a partial success where someOperationsin the request succeeded. EachOperationthat failed processing has a corresponding item in this list. - A failed RPC status indicates a general non-deterministic failure. When this happens, it’s impossible to know which of the ‘Operations’ in the request succeeded or failed.
service_config_id: StringThe actual config id used to process the request.
service_rollout_id: StringThe current service rollout id used to process the request.
Implementations§
Source§impl ReportResponse
impl ReportResponse
pub fn new() -> Self
Sourcepub fn set_report_errors<T, V>(self, v: T) -> Self
pub fn set_report_errors<T, V>(self, v: T) -> Self
Sets the value of report_errors.
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_service_rollout_id<T: Into<String>>(self, v: T) -> Self
pub fn set_service_rollout_id<T: Into<String>>(self, v: T) -> Self
Sets the value of service_rollout_id.
Trait Implementations§
Source§impl Clone for ReportResponse
impl Clone for ReportResponse
Source§fn clone(&self) -> ReportResponse
fn clone(&self) -> ReportResponse
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 ReportResponse
impl Debug for ReportResponse
Source§impl Default for ReportResponse
impl Default for ReportResponse
Source§fn default() -> ReportResponse
fn default() -> ReportResponse
Returns the “default value” for a type. Read more
Source§impl Message for ReportResponse
impl Message for ReportResponse
Source§impl PartialEq for ReportResponse
impl PartialEq for ReportResponse
impl StructuralPartialEq for ReportResponse
Auto Trait Implementations§
impl Freeze for ReportResponse
impl RefUnwindSafe for ReportResponse
impl Send for ReportResponse
impl Sync for ReportResponse
impl Unpin for ReportResponse
impl UnwindSafe for ReportResponse
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