pub struct ValidateResult {
pub result: String,
pub kind: Option<String>,
pub value: Option<String>,
pub errors: Vec<Value>,
pub extra: HashMap<String, Value>,
}Expand description
Response from Client::validate.
Fields§
§result: StringOutcome label: "valid", "invalid", or "low_confidence".
kind: Option<String>Echoed identifier type.
value: Option<String>Echoed identifier value.
errors: Vec<Value>Structured failure reasons when result is non-valid.
extra: HashMap<String, Value>Forward-compatible bucket for any unrecognized fields the server adds.
Trait Implementations§
Source§impl Clone for ValidateResult
impl Clone for ValidateResult
Source§fn clone(&self) -> ValidateResult
fn clone(&self) -> ValidateResult
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 ValidateResult
impl Debug for ValidateResult
Source§impl Default for ValidateResult
impl Default for ValidateResult
Source§fn default() -> ValidateResult
fn default() -> ValidateResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidateResult
impl<'de> Deserialize<'de> for ValidateResult
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
Source§impl PartialEq for ValidateResult
impl PartialEq for ValidateResult
Source§fn eq(&self, other: &ValidateResult) -> bool
fn eq(&self, other: &ValidateResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidateResult
impl Serialize for ValidateResult
impl StructuralPartialEq for ValidateResult
Auto Trait Implementations§
impl Freeze for ValidateResult
impl RefUnwindSafe for ValidateResult
impl Send for ValidateResult
impl Sync for ValidateResult
impl Unpin for ValidateResult
impl UnsafeUnpin for ValidateResult
impl UnwindSafe for ValidateResult
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