#[non_exhaustive]pub enum ReportFormat {
Json,
JsonPretty,
Text,
Xml,
RawXml,
Html,
}Expand description
Report output format.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Json
Compact JSON.
JsonPretty
Pretty-printed JSON.
Text
Human-readable text.
Xml
Machine-readable XML compatibility report.
RawXml
Raw processor-style XML report.
Html
Static human-readable HTML report.
Implementations§
Source§impl ReportFormat
impl ReportFormat
Sourcepub fn write_report<W: Write>(
&self,
report: &ValidationReport,
out: W,
) -> Result<()>
pub fn write_report<W: Write>( &self, report: &ValidationReport, out: W, ) -> Result<()>
Sourcepub fn write_batch<W: Write>(&self, report: &BatchReport, out: W) -> Result<()>
pub fn write_batch<W: Write>(&self, report: &BatchReport, out: W) -> Result<()>
Sourcepub fn write_repair_report<W: Write>(
&self,
report: &RepairReport,
out: W,
) -> Result<()>
pub fn write_repair_report<W: Write>( &self, report: &RepairReport, out: W, ) -> Result<()>
Sourcepub fn write_repair_batch<W: Write>(
&self,
report: &RepairBatchReport,
out: W,
) -> Result<()>
pub fn write_repair_batch<W: Write>( &self, report: &RepairBatchReport, out: W, ) -> Result<()>
Trait Implementations§
Source§impl Clone for ReportFormat
impl Clone for ReportFormat
Source§fn clone(&self) -> ReportFormat
fn clone(&self) -> ReportFormat
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 ReportFormat
impl Debug for ReportFormat
Source§impl<'de> Deserialize<'de> for ReportFormat
impl<'de> Deserialize<'de> for ReportFormat
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 PartialEq for ReportFormat
impl PartialEq for ReportFormat
Source§fn eq(&self, other: &ReportFormat) -> bool
fn eq(&self, other: &ReportFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReportFormat
impl Serialize for ReportFormat
impl Copy for ReportFormat
impl Eq for ReportFormat
impl StructuralPartialEq for ReportFormat
Auto Trait Implementations§
impl Freeze for ReportFormat
impl RefUnwindSafe for ReportFormat
impl Send for ReportFormat
impl Sync for ReportFormat
impl Unpin for ReportFormat
impl UnsafeUnpin for ReportFormat
impl UnwindSafe for ReportFormat
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