pub enum ValidateError {
Refused(AdmissionError),
Package(String),
Changes(ChangeError),
Inspect(InspectError),
Usage(String),
Layout(String),
}Expand description
Why a package could not be validated at all (a finding is never an error).
Variants§
Refused(AdmissionError)
Refused before parsing by crate::admission.
Package(String)
The package could not be read or written.
Changes(ChangeError)
The tracked changes could not be listed or rejected.
Inspect(InspectError)
The paragraphs could not be read.
Usage(String)
The rules asked for cannot run: an unknown rule, or edits without
the original document and author.
Layout(String)
The layout pass an audit rule reads failed.
Trait Implementations§
Source§impl Clone for ValidateError
impl Clone for ValidateError
Source§fn clone(&self) -> ValidateError
fn clone(&self) -> ValidateError
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 ValidateError
impl Debug for ValidateError
Source§impl Display for ValidateError
impl Display for ValidateError
impl Eq for ValidateError
Source§impl Error for ValidateError
impl Error for ValidateError
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 From<AdmissionError> for ValidateError
impl From<AdmissionError> for ValidateError
Source§fn from(e: AdmissionError) -> ValidateError
fn from(e: AdmissionError) -> ValidateError
Converts to this type from the input type.
Source§impl From<ChangeError> for ValidateError
impl From<ChangeError> for ValidateError
Source§fn from(e: ChangeError) -> ValidateError
fn from(e: ChangeError) -> ValidateError
Converts to this type from the input type.
Source§impl From<InspectError> for ValidateError
impl From<InspectError> for ValidateError
Source§fn from(e: InspectError) -> ValidateError
fn from(e: InspectError) -> ValidateError
Converts to this type from the input type.
Source§impl From<OpcError> for ValidateError
impl From<OpcError> for ValidateError
Source§fn from(e: OpcError) -> ValidateError
fn from(e: OpcError) -> ValidateError
Converts to this type from the input type.
Source§impl PartialEq for ValidateError
impl PartialEq for ValidateError
impl StructuralPartialEq for ValidateError
Auto Trait Implementations§
impl Forget for ValidateError
impl Freeze for ValidateError
impl Move for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnsafeUnpin for ValidateError
impl UnwindSafe for ValidateError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.