pub struct ExportReport<T> {
pub schema_version: u32,
pub format: String,
pub output: T,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Result of exporting a notation document, including conversion diagnostics.
Fields§
§schema_version: u32Version of the serialized report shape.
format: StringStable lowercase format identifier for the output document.
output: T§diagnostics: Vec<Diagnostic>Implementations§
Source§impl<T> ExportReport<T>
impl<T> ExportReport<T>
pub fn new(output: T) -> Self
pub fn for_format(output: T, format: impl Into<String>) -> Self
pub fn warning_count(&self) -> usize
pub fn error_count(&self) -> usize
pub fn loss_count(&self) -> usize
Trait Implementations§
Source§impl<T: Clone> Clone for ExportReport<T>
impl<T: Clone> Clone for ExportReport<T>
Source§fn clone(&self) -> ExportReport<T>
fn clone(&self) -> ExportReport<T>
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<T: Debug> Debug for ExportReport<T>
impl<T: Debug> Debug for ExportReport<T>
Source§impl<'de, T> Deserialize<'de> for ExportReport<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ExportReport<T>where
T: Deserialize<'de>,
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<T: PartialEq> PartialEq for ExportReport<T>
impl<T: PartialEq> PartialEq for ExportReport<T>
Source§impl<T> Serialize for ExportReport<T>where
T: Serialize,
impl<T> Serialize for ExportReport<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for ExportReport<T>
Auto Trait Implementations§
impl<T> Freeze for ExportReport<T>where
T: Freeze,
impl<T> RefUnwindSafe for ExportReport<T>where
T: RefUnwindSafe,
impl<T> Send for ExportReport<T>where
T: Send,
impl<T> Sync for ExportReport<T>where
T: Sync,
impl<T> Unpin for ExportReport<T>where
T: Unpin,
impl<T> UnsafeUnpin for ExportReport<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ExportReport<T>where
T: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more