Struct OutputFile
pub struct OutputFile {
pub format: ExportFormat,
pub name: String,
pub mime: &'static str,
pub bytes: Vec<u8>,
}Expand description
A produced file. A file ready to be saved or sent.
Fields§
§format: ExportFormatThe format.
name: StringA name that is safe on every file system.
mime: &'static strThe media type.
bytes: Vec<u8>The content.
Trait Implementations§
§impl Clone for ExportedFile
impl Clone for ExportedFile
§fn clone(&self) -> ExportedFile
fn clone(&self) -> ExportedFile
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 more§impl Debug for ExportedFile
impl Debug for ExportedFile
impl Eq for ExportedFile
§impl PartialEq for ExportedFile
impl PartialEq for ExportedFile
impl StructuralPartialEq for ExportedFile
Auto Trait Implementations§
impl Freeze for ExportedFile
impl RefUnwindSafe for ExportedFile
impl Send for ExportedFile
impl Sync for ExportedFile
impl Unpin for ExportedFile
impl UnsafeUnpin for ExportedFile
impl UnwindSafe for ExportedFile
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.