pub struct ExportFile {
pub relative_path: String,
pub content: String,
}Expand description
A single file to be written, as a relative path + content string.
Fields§
§relative_path: StringRelative path within the pkg directory (e.g. “graphs/resource_models/MyModel.json”)
content: StringFile content (JSON or XML)
Trait Implementations§
Source§impl Clone for ExportFile
impl Clone for ExportFile
Source§fn clone(&self) -> ExportFile
fn clone(&self) -> ExportFile
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 moreAuto Trait Implementations§
impl Freeze for ExportFile
impl RefUnwindSafe for ExportFile
impl Send for ExportFile
impl Sync for ExportFile
impl Unpin for ExportFile
impl UnsafeUnpin for ExportFile
impl UnwindSafe for ExportFile
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