pub struct Registry {
pub schema_version: u32,
pub id: String,
pub base_commit: String,
pub sources: Vec<Source>,
pub groups: Vec<Group>,
pub snapshots: Vec<Snapshot>,
}Expand description
The whole registry.
Fields§
§schema_version: u32The registry shape.
id: StringThe migration’s identifier.
base_commit: StringThe commit the archive read every source from.
sources: Vec<Source>Every listed file.
groups: Vec<Group>Every group the map has made.
snapshots: Vec<Snapshot>Every snapshot the workspace holds.
Implementations§
Source§impl Registry
impl Registry
Sourcepub fn mark(&mut self, mark: &Mark<'_>, at: &str) -> Result<Marked, RkError>
pub fn mark(&mut self, mark: &Mark<'_>, at: &str) -> Result<Marked, RkError>
Record one mark, appending a history entry to every source it moves.
§Errors
A usage error for a name that resolves to nothing, a flag that does not apply to what the name resolves to, a group or tag that is not a slug, and a drop with no reason.
Sourcepub fn unfinished(&self, target: &Utf8Path) -> Vec<String>
pub fn unfinished(&self, target: &Utf8Path) -> Vec<String>
Why the migration cannot close yet, one reason per blocking fact, judged against the target’s own files.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Registry
impl<'de> Deserialize<'de> for Registry
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
impl Eq for Registry
impl StructuralPartialEq for Registry
Auto Trait Implementations§
impl Forget for Registry
impl Freeze for Registry
impl Move for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnsafeUnpin for Registry
impl UnwindSafe for Registry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.