pub enum ParseWarning {
StreamLengthCorrected {
declared_length: usize,
actual_length: usize,
object_id: Option<(u32, u16)>,
},
InvalidEncoding {
position: usize,
recovered_text: String,
encoding_used: Option<EncodingType>,
replacement_count: usize,
},
MissingKeyWithFallback {
key: String,
fallback_value: String,
},
SyntaxErrorRecovered {
position: usize,
expected: String,
found: String,
recovery_action: String,
},
InvalidReferenceSkipped {
object_id: (u32, u16),
reason: String,
},
}Expand description
Warnings that can be collected during lenient parsing
Variants§
StreamLengthCorrected
Stream length mismatch was corrected
InvalidEncoding
Invalid character encoding was recovered
Fields
§
encoding_used: Option<EncodingType>MissingKeyWithFallback
Missing required key with fallback used
SyntaxErrorRecovered
Syntax error was recovered
InvalidReferenceSkipped
Invalid object reference was skipped
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParseWarning
impl RefUnwindSafe for ParseWarning
impl Send for ParseWarning
impl Sync for ParseWarning
impl Unpin 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