pub struct ImportOptions {
pub folders: Vec<String>,
pub tags: Vec<String>,
pub palette: bool,
pub annotation: String,
pub url: String,
pub font_weight_tag: bool,
pub camera_metadata_all_photos: bool,
pub keywords_as_tags: bool,
pub folder_auto_tags: bool,
pub name: Option<String>,
pub trashed: bool,
pub added_at: Option<u64>,
}Expand description
Settings for Library::import_file.
Fields§
§folders: Vec<String>Ids of folders to put the item in; each must exist.
Tags to attach.
palette: boolWhether to extract a palette (default true).
annotation: StringAnnotation text.
url: StringSource URL.
font_weight_tag: boolAdd a font’s weight (fontMetas.weight) as a tag, like Eagle’s
“font auto tag” preference (default true, as in Eagle).
camera_metadata_all_photos: boolAlso store rawMetas for JPEG, TIFF, HEIC, PNG and WebP photos.
Eagle only does it for RAW files (default false).
Add embedded IPTC keywords and XMP dc:subject entries as tags, like
Eagle’s IPTC preference (default false, as in Eagle).
Add the auto-tags of the folders in folders (and their parents’),
as Eagle does for items imported or pasted into a folder in its
window (default false: Eagle’s API leaves them off). See
crate::autotag.
name: Option<String>A name for the item, in place of the file’s own. The file’s extension is kept. Meant for a single file (default None).
trashed: boolImport the item straight into the trash (Inboard’s trashed items).
added_at: Option<u64>The item’s date added (modificationTime, ms) in place of the
import time, for items brought over from another app.
Trait Implementations§
Source§impl Clone for ImportOptions
impl Clone for ImportOptions
Source§fn clone(&self) -> ImportOptions
fn clone(&self) -> ImportOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ImportOptions
impl Debug for ImportOptions
Auto 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§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().