pub struct Checkout {
pub id: EntityId,
pub file: EntityId,
pub path: PathBuf,
pub content: Option<Hash>,
pub copy: CopyState,
}Expand description
A checkout on this device.
Fields§
§id: EntityIdThe checkout’s record.
file: EntityIdThe file it is a copy of.
path: PathBufWhere its copy is.
content: Option<Hash>The content its copy held when it was written, or when its edits were recorded; None
once a purge took it away.
copy: CopyStateWhether its copy is unchanged since.
Trait Implementations§
impl Eq for Checkout
impl StructuralPartialEq for Checkout
Auto Trait Implementations§
impl Forget for Checkout
impl Freeze for Checkout
impl Move for Checkout
impl RefUnwindSafe for Checkout
impl Send for Checkout
impl Sync for Checkout
impl Unpin for Checkout
impl UnsafeUnpin for Checkout
impl UnwindSafe for Checkout
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.