pub struct FileInfo {
pub path: PathBuf,
pub format: Option<FileSpec>,
}
Expand description
Information about the path to be opened or saved.
This path might point to a file or a directory.
Fields§
§path: PathBuf
The path to the selected file.
On macOS, this is already rewritten to use the extension that the user selected
with the file format
property.
format: Option<FileSpec>
The selected file format.
If there’re multiple different formats available
this allows understanding the kind of format that the user expects the file
to be written in. Examples could be Blender 2.4 vs Blender 2.6 vs Blender 2.8.
The path
above will already contain the appropriate extension chosen in the
format
property, so it is not necessary to mutate path
any further.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.