pub struct FlakeLockFlags { /* private fields */ }Expand description
Parameters that affect the locking of a flake.
Implementations§
Source§impl FlakeLockFlags
impl FlakeLockFlags
pub fn new(settings: &FlakeSettings) -> Result<Self>
Sourcepub fn set_mode_write_as_needed(&mut self) -> Result<()>
pub fn set_mode_write_as_needed(&mut self) -> Result<()>
Configures LockedFlake::lock to make incremental changes to the lock file as needed. Changes are written to file.
Sourcepub fn set_mode_check(&mut self) -> Result<()>
pub fn set_mode_check(&mut self) -> Result<()>
Make LockedFlake::lock check if the lock file is up to date. If not, an error is returned.
Sourcepub fn set_mode_virtual(&mut self) -> Result<()>
pub fn set_mode_virtual(&mut self) -> Result<()>
Like set_mode_write_as_needed, but does not write to the lock file.
Sourcepub fn add_input_override(
&mut self,
override_path: &str,
override_ref: &FlakeReference,
) -> Result<()>
pub fn add_input_override( &mut self, override_path: &str, override_ref: &FlakeReference, ) -> Result<()>
Adds an input override to the lock file that will be produced. The LockedFlake::lock operation will not write to the lock file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlakeLockFlags
impl RefUnwindSafe for FlakeLockFlags
impl !Send for FlakeLockFlags
impl !Sync for FlakeLockFlags
impl Unpin for FlakeLockFlags
impl UnwindSafe for FlakeLockFlags
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