Struct deno_lockfile::Lockfile
source · pub struct Lockfile {
pub overwrite: bool,
pub has_content_changed: bool,
pub content: LockfileContent,
pub filename: PathBuf,
}
Fields§
§overwrite: bool
§has_content_changed: bool
§content: LockfileContent
§filename: PathBuf
Implementations§
source§impl Lockfile
impl Lockfile
pub fn new(filename: PathBuf, overwrite: bool) -> Result<Lockfile, Error>
pub fn write(&self) -> Result<(), Error>
pub fn check_or_insert_remote(&mut self, specifier: &str, code: &str) -> bool
pub fn check_or_insert_npm_package( &mut self, package_info: NpmPackageLockfileInfo ) -> Result<(), LockfileError>
pub fn insert_npm_specifier( &mut self, serialized_package_req: String, serialized_package_id: String )
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Lockfile
impl Send for Lockfile
impl Sync for Lockfile
impl Unpin 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