pub struct ParseWarning {
pub code: String,
pub message: String,
}Expand description
A non-fatal issue encountered during parsing.
Warnings do not prevent a file from being committed, but they may reduce
platform functionality (e.g. a missing description suppresses indexing).
Fields§
§code: StringMachine-readable warning code (e.g. "missing_description").
message: StringHuman-readable message.
Trait Implementations§
Source§impl Clone for ParseWarning
impl Clone for ParseWarning
Source§fn clone(&self) -> ParseWarning
fn clone(&self) -> ParseWarning
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 ParseWarning
impl Debug for ParseWarning
Source§impl<'de> Deserialize<'de> for ParseWarning
impl<'de> Deserialize<'de> for ParseWarning
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 ParseWarning
impl PartialEq for ParseWarning
Source§fn eq(&self, other: &ParseWarning) -> bool
fn eq(&self, other: &ParseWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ParseWarning
impl Serialize for ParseWarning
impl StructuralPartialEq for ParseWarning
Auto Trait Implementations§
impl Freeze for ParseWarning
impl RefUnwindSafe for ParseWarning
impl Send for ParseWarning
impl Sync for ParseWarning
impl Unpin for ParseWarning
impl UnsafeUnpin for ParseWarning
impl UnwindSafe for ParseWarning
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