pub struct UnknownValue {
pub value: String,
pub expected: String,
}Expand description
A string that is not one of a closed vocabulary’s values.
Carries what was read and what was expected, because the two together are what a caller needs to correct a stored value or a request field.
Fields§
§value: String§expected: StringTrait Implementations§
Source§impl Clone for UnknownValue
impl Clone for UnknownValue
Source§fn clone(&self) -> UnknownValue
fn clone(&self) -> UnknownValue
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 UnknownValue
impl Debug for UnknownValue
Source§impl Display for UnknownValue
impl Display for UnknownValue
impl Eq for UnknownValue
Source§impl Error for UnknownValue
impl Error for UnknownValue
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for UnknownValue
impl PartialEq for UnknownValue
impl StructuralPartialEq for UnknownValue
Auto Trait Implementations§
impl Freeze for UnknownValue
impl RefUnwindSafe for UnknownValue
impl Send for UnknownValue
impl Sync for UnknownValue
impl Unpin for UnknownValue
impl UnsafeUnpin for UnknownValue
impl UnwindSafe for UnknownValue
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