#[non_exhaustive]pub struct CheckResponse {
pub operation_id: String,
pub check_errors: Vec<CheckError>,
pub service_config_id: String,
pub service_rollout_id: String,
pub check_info: Option<CheckInfo>,
/* private fields */
}Expand description
Response 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.operation_id: StringThe same operation_id value used in the CheckRequest. Used for logging and diagnostics purposes.
check_errors: Vec<CheckError>Indicate the decision of the check.
If no check errors are present, the service should process the operation. Otherwise the service should use the list of errors to determine the appropriate action.
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.
check_info: Option<CheckInfo>Feedback data returned from the server during processing a Check request.
Implementations§
Source§impl CheckResponse
impl CheckResponse
pub fn new() -> Self
Sourcepub fn set_operation_id<T: Into<String>>(self, v: T) -> Self
pub fn set_operation_id<T: Into<String>>(self, v: T) -> Self
Sets the value of operation_id.
Sourcepub fn set_check_errors<T, V>(self, v: T) -> Self
pub fn set_check_errors<T, V>(self, v: T) -> Self
Sets the value of check_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.
Sourcepub fn set_check_info<T>(self, v: T) -> Self
pub fn set_check_info<T>(self, v: T) -> Self
Sets the value of check_info.
Sourcepub fn set_or_clear_check_info<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_check_info<T>(self, v: Option<T>) -> Self
Sets or clears the value of check_info.
Trait Implementations§
Source§impl Clone for CheckResponse
impl Clone for CheckResponse
Source§fn clone(&self) -> CheckResponse
fn clone(&self) -> CheckResponse
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 CheckResponse
impl Debug for CheckResponse
Source§impl Default for CheckResponse
impl Default for CheckResponse
Source§fn default() -> CheckResponse
fn default() -> CheckResponse
Returns the “default value” for a type. Read more
Source§impl Message for CheckResponse
impl Message for CheckResponse
Source§impl PartialEq for CheckResponse
impl PartialEq for CheckResponse
impl StructuralPartialEq for CheckResponse
Auto Trait Implementations§
impl Freeze for CheckResponse
impl RefUnwindSafe for CheckResponse
impl Send for CheckResponse
impl Sync for CheckResponse
impl Unpin for CheckResponse
impl UnwindSafe for CheckResponse
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