pub struct ImportWarning {
pub kind: WarningKind,
pub location: usize,
pub section: Option<usize>,
pub message: String,
pub detail: Option<WarningDetail>,
}Expand description
A non-fatal problem found while importing, shown to the author.
Fields§
§kind: WarningKind§location: usize1-based line in the source (Markdown) or paragraph number (docx); 0 when the warning is about the file as a whole.
section: Option<usize>Index into Book::sections of the section the warning is about.
message: String§detail: Option<WarningDetail>The thing the warning is about, when it has a name, so the UI can say which image or footnote it means.
Trait Implementations§
Source§impl Clone for ImportWarning
impl Clone for ImportWarning
Source§impl Debug for ImportWarning
impl Debug for ImportWarning
impl Eq for ImportWarning
Source§impl PartialEq for ImportWarning
impl PartialEq for ImportWarning
Source§impl Serialize for ImportWarning
impl Serialize for ImportWarning
impl StructuralPartialEq for ImportWarning
Auto Trait Implementations§
impl Freeze for ImportWarning
impl RefUnwindSafe for ImportWarning
impl Send for ImportWarning
impl Sync for ImportWarning
impl Unpin for ImportWarning
impl UnsafeUnpin for ImportWarning
impl UnwindSafe for ImportWarning
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.