pub struct SelfCheckResponse {
pub status: SelfCheckStatus,
pub failures: Vec<SelfCheckFailure>,
pub completed_at: i64,
}Expand description
Response from a self-check execution.
Skip-handler model: contains only validation results, not handler execution results.
Fields§
§status: SelfCheckStatusOverall status of the self-check.
failures: Vec<SelfCheckFailure>Details of any failures encountered.
completed_at: i64Unix timestamp (seconds) when the self-check completed.
Implementations§
Source§impl SelfCheckResponse
impl SelfCheckResponse
Sourcepub fn validate(&self) -> Result<(), SelfCheckError>
pub fn validate(&self) -> Result<(), SelfCheckError>
Validate this response.
Trait Implementations§
Source§impl Clone for SelfCheckResponse
impl Clone for SelfCheckResponse
Source§fn clone(&self) -> SelfCheckResponse
fn clone(&self) -> SelfCheckResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SelfCheckResponse
impl Debug for SelfCheckResponse
Source§impl<'de> Deserialize<'de> for SelfCheckResponse
impl<'de> Deserialize<'de> for SelfCheckResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SelfCheckResponse
Source§impl PartialEq for SelfCheckResponse
impl PartialEq for SelfCheckResponse
Source§fn eq(&self, other: &SelfCheckResponse) -> bool
fn eq(&self, other: &SelfCheckResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SelfCheckResponse
impl Serialize for SelfCheckResponse
impl StructuralPartialEq for SelfCheckResponse
Auto Trait Implementations§
impl Freeze for SelfCheckResponse
impl RefUnwindSafe for SelfCheckResponse
impl Send for SelfCheckResponse
impl Sync for SelfCheckResponse
impl Unpin for SelfCheckResponse
impl UnsafeUnpin for SelfCheckResponse
impl UnwindSafe for SelfCheckResponse
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