pub struct FileDetail {
pub name: String,
pub uuid: Uuid,
pub path: AbsolutePath,
pub abspath: AbsolutePath,
pub latest_revision: Option<Revision>,
pub current_revision: Option<Revision>,
pub revisions: Revisions,
}Expand description
Detailed file information.
Fields§
§name: StringFilename.
uuid: UuidId of the file.
path: AbsolutePathPath to the folder containing this file.
abspath: AbsolutePathAbsolute path to the folder containing this file, whatever that means.
latest_revision: Option<Revision>The upcoming revision.
Probably never has a state of Completed.
current_revision: Option<Revision>The optional current revision, which always should have a state of Completed.
revisions: RevisionsEarlier revisions.
Implementations§
Source§impl FileDetail
impl FileDetail
Sourcepub fn last_upload_complete(&self) -> bool
pub fn last_upload_complete(&self) -> bool
Check if latest_revision is None (otherwise it probably is Incomplete or
Corrupted) and if current_revision has a state of Completed.
Trait Implementations§
Source§impl Debug for FileDetail
impl Debug for FileDetail
Source§impl<'de> Deserialize<'de> for FileDetail
impl<'de> Deserialize<'de> for FileDetail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileDetail
impl RefUnwindSafe for FileDetail
impl Send for FileDetail
impl Sync for FileDetail
impl Unpin for FileDetail
impl UnwindSafe for FileDetail
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