pub struct Lock {
pub edges: BTreeMap<String, LockEntry>,
}Fields§
§edges: BTreeMap<String, LockEntry>Implementations§
Source§impl Lock
impl Lock
pub fn parse(json: &str) -> Result<Lock>
Sourcepub fn load_from_source(source: &dyn Source) -> Result<Lock>
pub fn load_from_source(source: &dyn Source) -> Result<Lock>
Loads via a Source (for GitTreeSource). .miwa/ is excluded from
list_files, so this reads the lock file directly. A NotFound read
error means “no lock yet”; any other error (e.g. a git failure)
propagates instead of being silently treated as “absent”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lock
impl<'de> Deserialize<'de> for Lock
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 StructuralPartialEq for Lock
Auto Trait Implementations§
impl Freeze for Lock
impl RefUnwindSafe for Lock
impl Send for Lock
impl Sync for Lock
impl Unpin for Lock
impl UnsafeUnpin for Lock
impl UnwindSafe for Lock
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