pub struct FileUpdater;Expand description
Updates package.json with new versions
Implementations§
Source§impl FileUpdater
impl FileUpdater
pub fn new() -> Self
Sourcepub fn apply_updates(
&self,
checks: &[DependencyCheck],
include_minor: bool,
force: bool,
) -> Result<UpdateResult>
pub fn apply_updates( &self, checks: &[DependencyCheck], include_minor: bool, force: bool, ) -> Result<UpdateResult>
Apply updates to package.json based on severity filter
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileUpdater
impl RefUnwindSafe for FileUpdater
impl Send for FileUpdater
impl Sync for FileUpdater
impl Unpin for FileUpdater
impl UnsafeUnpin for FileUpdater
impl UnwindSafe for FileUpdater
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