pub struct ImportOptions {
pub media_type: MediaType,
pub key: String,
pub source: PathBuf,
pub locales: Vec<String>,
pub tags: Vec<String>,
pub reject_duplicates: bool,
}Expand description
Options for importing a media file.
Fields§
§media_type: MediaTypeTarget LibSharedMedia type for the imported file.
key: StringDisplay key used during registration.
source: PathBufSource file path on the local filesystem.
locales: Vec<String>Optional locale names for font assets.
Optional user-defined tags.
reject_duplicates: boolWhen true, importing a duplicate key fails instead of coexisting.
Implementations§
Trait Implementations§
Source§impl Clone for ImportOptions
impl Clone for ImportOptions
Source§fn clone(&self) -> ImportOptions
fn clone(&self) -> ImportOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 ImportOptions
impl RefUnwindSafe for ImportOptions
impl Send for ImportOptions
impl Sync for ImportOptions
impl Unpin for ImportOptions
impl UnsafeUnpin for ImportOptions
impl UnwindSafe for ImportOptions
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more