pub struct AddedFile {
pub file: EntityId,
pub known: bool,
pub origin: Option<EntityId>,
pub content: Hash,
pub types: Vec<TypeName>,
pub kept: Kept,
pub unasked: bool,
}Expand description
What adding a file did.
Fields§
§file: EntityIdThe file: the entity of its content.
known: boolWhether the library held its content already, as this file.
origin: Option<EntityId>The origin recorded for where it was found, or None if the library knew it found
there already, unchanged since, or it was in a temporary folder, whose paths are
not recorded.
content: HashThe hash of its content.
types: Vec<TypeName>Its types: a file, and a photo or a video if it says it is one.
kept: KeptHow this device holds it: in the store, or only where it was found.
unasked: boolWhether the rule that chose its policy asks whether a file as large can be got again, and nobody answered for its folder, so that it went into the store.
Trait Implementations§
impl Eq for AddedFile
impl StructuralPartialEq for AddedFile
Auto Trait Implementations§
impl Forget for AddedFile
impl Freeze for AddedFile
impl Move for AddedFile
impl RefUnwindSafe for AddedFile
impl Send for AddedFile
impl Sync for AddedFile
impl Unpin for AddedFile
impl UnsafeUnpin for AddedFile
impl UnwindSafe for AddedFile
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.