pub enum FieldValidation {
Validated {
fields_populated: Vec<String>,
},
PopulatedButEmpty {
missing_fields: Vec<String>,
},
Failed {
reason: String,
},
NotTested,
}Expand description
Empirical validation result for a single REST method or WS stream.
Variants§
Validated
Method/stream returned real data; listed fields were non-zero/non-default.
PopulatedButEmpty
Method/stream connected and returned data, but values were zero or default — parser bug.
Failed
Method/stream did not work (auth error, symbol error, timeout, silent stream).
NotTested
Not tested in this harness run.
Implementations§
Source§impl FieldValidation
impl FieldValidation
Sourcepub fn is_validated(&self) -> bool
pub fn is_validated(&self) -> bool
Returns true if this is a full Validated result.
Sourcepub fn is_working(&self) -> bool
pub fn is_working(&self) -> bool
Returns true if the result is non-failing (validated or partially populated).
Trait Implementations§
Source§impl Clone for FieldValidation
impl Clone for FieldValidation
Source§fn clone(&self) -> FieldValidation
fn clone(&self) -> FieldValidation
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 FieldValidation
impl Debug for FieldValidation
Source§impl<'de> Deserialize<'de> for FieldValidation
impl<'de> Deserialize<'de> for FieldValidation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FieldValidation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FieldValidation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FieldValidation
impl PartialEq for FieldValidation
Source§fn eq(&self, other: &FieldValidation) -> bool
fn eq(&self, other: &FieldValidation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FieldValidation
impl Serialize for FieldValidation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FieldValidation
Auto Trait Implementations§
impl Freeze for FieldValidation
impl RefUnwindSafe for FieldValidation
impl Send for FieldValidation
impl Sync for FieldValidation
impl Unpin for FieldValidation
impl UnsafeUnpin for FieldValidation
impl UnwindSafe for FieldValidation
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