pub struct FidelityReport {
pub backend: String,
pub dropped: Vec<LossNote>,
pub preserved_extras: Vec<String>,
pub warnings: Vec<String>,
}Expand description
Uniform report for data preserved, dropped, or warned about at a boundary.
Fields§
§backend: StringBackend that produced the report, such as codec/ooxml-xlsx or
site/msgraph.
dropped: Vec<LossNote>Fields or records the boundary could not preserve.
preserved_extras: Vec<String>Backend-specific data preserved outside the portable document body.
warnings: Vec<String>Non-fatal diagnostics that should remain visible to callers.
Implementations§
Source§impl FidelityReport
impl FidelityReport
Sourcepub fn is_lossless(&self) -> bool
pub fn is_lossless(&self) -> bool
Reports whether the boundary preserved the document without known loss.
Sourcepub fn with_dropped(
self,
field: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn with_dropped( self, field: impl Into<String>, reason: impl Into<String>, ) -> Self
Appends one dropped-field note.
Sourcepub fn with_preserved_extra(self, extra: impl Into<String>) -> Self
pub fn with_preserved_extra(self, extra: impl Into<String>) -> Self
Appends one preserved-extra marker.
Sourcepub fn with_warning(self, warning: impl Into<String>) -> Self
pub fn with_warning(self, warning: impl Into<String>) -> Self
Appends one non-fatal warning.
Trait Implementations§
Source§impl Clone for FidelityReport
impl Clone for FidelityReport
Source§fn clone(&self) -> FidelityReport
fn clone(&self) -> FidelityReport
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 FidelityReport
impl Debug for FidelityReport
Source§impl Default for FidelityReport
impl Default for FidelityReport
Source§fn default() -> FidelityReport
fn default() -> FidelityReport
Returns the “default value” for a type. Read more
impl Eq for FidelityReport
Source§impl PartialEq for FidelityReport
impl PartialEq for FidelityReport
impl StructuralPartialEq for FidelityReport
Auto Trait Implementations§
impl Freeze for FidelityReport
impl RefUnwindSafe for FidelityReport
impl Send for FidelityReport
impl Sync for FidelityReport
impl Unpin for FidelityReport
impl UnsafeUnpin for FidelityReport
impl UnwindSafe for FidelityReport
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.