pub struct LockFile {
pub addons: Vec<LockEntry>,
}Fields§
§addons: Vec<LockEntry>Implementations§
Source§impl LockFile
impl LockFile
pub fn load(project_root: &Path) -> Result<Self>
pub fn save(&self, project_root: &Path) -> Result<()>
pub fn is_command_executed(&self, addon_id: &str, command: &str) -> bool
pub fn addon_version(&self, addon_id: &str) -> Option<&str>
pub fn mark_command_executed(&mut self, addon_id: &str, command: &str)
pub fn upsert_entry(&mut self, entry: LockEntry)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LockFile
impl<'de> Deserialize<'de> for LockFile
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 LockFile
impl RefUnwindSafe for LockFile
impl Send for LockFile
impl Sync for LockFile
impl Unpin for LockFile
impl UnsafeUnpin for LockFile
impl UnwindSafe for LockFile
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