#[non_exhaustive]pub struct ConversionSidecar {
pub path: String,
pub text: String,
}Expand description
Extra files a writer generated beside the primary text payload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringRelative file path the primary text refers to.
text: StringFile content.
Implementations§
Source§impl ConversionSidecar
impl ConversionSidecar
Sourcepub fn dropped_warning(&self, reason: &str) -> String
pub fn dropped_warning(&self, reason: &str) -> String
The fidelity warning for a surface that could not write this
sidecar. reason says why in that surface’s terms. All surfaces
must use this one formatter: consumers match on the warning text.
Trait Implementations§
Source§impl Clone for ConversionSidecar
impl Clone for ConversionSidecar
Source§fn clone(&self) -> ConversionSidecar
fn clone(&self) -> ConversionSidecar
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 ConversionSidecar
impl Debug for ConversionSidecar
Source§impl PartialEq for ConversionSidecar
impl PartialEq for ConversionSidecar
Source§fn eq(&self, other: &ConversionSidecar) -> bool
fn eq(&self, other: &ConversionSidecar) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ConversionSidecar
impl StructuralPartialEq for ConversionSidecar
Auto Trait Implementations§
impl Freeze for ConversionSidecar
impl RefUnwindSafe for ConversionSidecar
impl Send for ConversionSidecar
impl Sync for ConversionSidecar
impl Unpin for ConversionSidecar
impl UnsafeUnpin for ConversionSidecar
impl UnwindSafe for ConversionSidecar
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