pub struct DocViolation {
pub line: usize,
pub rule: &'static str,
pub message: String,
}Expand description
A single document validation violation with location and rule info.
Fields§
§line: usize§rule: &'static str§message: StringTrait Implementations§
Source§impl Clone for DocViolation
impl Clone for DocViolation
Source§fn clone(&self) -> DocViolation
fn clone(&self) -> DocViolation
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 moreSource§impl Debug for DocViolation
impl Debug for DocViolation
Source§impl PartialEq for DocViolation
impl PartialEq for DocViolation
impl Eq for DocViolation
impl StructuralPartialEq for DocViolation
Auto Trait Implementations§
impl Freeze for DocViolation
impl RefUnwindSafe for DocViolation
impl Send for DocViolation
impl Sync for DocViolation
impl Unpin for DocViolation
impl UnsafeUnpin for DocViolation
impl UnwindSafe for DocViolation
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§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.