pub enum SchemaValidationStatus {
ValidationDisabledAtCompileTime,
ValidationNotPerformedProperly,
ValidationCommunicationFailed(IpcRpcError),
SchemasMatched,
SchemaMismatch {
our_schema: String,
their_schema: String,
},
}
Expand description
Reports the outcome of automatic schema validation testing. This testing is performed on connection initiation.
Variants§
ValidationDisabledAtCompileTime
Crate was compiled without default features, so validation does not function.
ValidationNotPerformedProperly
Internal error
ValidationCommunicationFailed(IpcRpcError)
Internal error
SchemasMatched
Schemas matched, all clear
SchemaMismatch
Schemas didn’t match, schemas provided for comparison
Implementations§
Source§impl SchemaValidationStatus
impl SchemaValidationStatus
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns true if this is an instance of Self::SchemasMatched
, and false otherwise.
Sourcepub fn assert_success(&self)
pub fn assert_success(&self)
Panics if this status is not Self::SchemasMatched
, and prints the debug information into the panic.
Trait Implementations§
Source§impl Clone for SchemaValidationStatus
impl Clone for SchemaValidationStatus
Source§fn clone(&self) -> SchemaValidationStatus
fn clone(&self) -> SchemaValidationStatus
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 moreAuto Trait Implementations§
impl Freeze for SchemaValidationStatus
impl !RefUnwindSafe for SchemaValidationStatus
impl Send for SchemaValidationStatus
impl Sync for SchemaValidationStatus
impl Unpin for SchemaValidationStatus
impl !UnwindSafe for SchemaValidationStatus
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