pub struct KvWarning {
pub variable: String,
pub value: String,
pub span: Span,
}Expand description
A non-fatal problem encountered while parsing.
Produced for a #[kv(lenient)] field whose value failed to parse, and
appended to a caller-owned Vec<KvWarning> by the generated
parse_with_warnings method so that a caller can record the bad input
without the whole record failing.
Fields§
§variable: StringThe variable (key) whose value could not be parsed.
value: StringThe raw value that failed to parse.
span: SpanLocation of the value within the input.
Trait Implementations§
impl Eq for KvWarning
impl StructuralPartialEq for KvWarning
Auto Trait Implementations§
impl Freeze for KvWarning
impl RefUnwindSafe for KvWarning
impl Send for KvWarning
impl Sync for KvWarning
impl Unpin for KvWarning
impl UnsafeUnpin for KvWarning
impl UnwindSafe for KvWarning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.