pub struct FileFrom {
pub source: Option<EntityId>,
pub source_path: Option<String>,
pub source_name: Option<String>,
pub found: Option<FoundElsewhere>,
pub values: Vec<(FieldName, Value)>,
pub taken: Option<Edtf>,
pub folders: Vec<EntityId>,
}Expand description
Where a file to add came from, beyond the folder it is read from: the source it was imported from, and its path and name there; where it was found, if it is read from a copy that is no original, as one unpacked from an archive; values that replace what it says of itself, as an archive’s metadata; and the folders to put it in.
Fields§
§source: Option<EntityId>The source it came from, by its record.
source_path: Option<String>Its path within the source, its names joined by /.
source_name: Option<String>Its name in the source, where it differs from the name it is added under.
found: Option<FoundElsewhere>Where it was found, if the file read is a copy of it that is no original: then the file goes into the store, as nothing keeps it where it was found.
values: Vec<(FieldName, Value)>Values that replace what the file says of itself, where it says otherwise: on a file the library holds already, only those that nobody changed since.
taken: Option<Edtf>When it was taken, as where it was found says, such as a service that held it: it
replaces when the photo says it was taken, unless the photo’s own time is the same
moment, written in its local time, which then stays, with its offset from UTC if it
had none (taken_of).
folders: Vec<EntityId>Folders to put it in.