pub struct FlakeLock { /* private fields */ }Implementations§
Source§impl FlakeLock
impl FlakeLock
pub fn from_default_path() -> Result<Self, FlakeEditError>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, FlakeEditError>
pub fn read_from_str(str: &str) -> Result<Self, FlakeEditError>
pub fn root(&self) -> &str
Sourcepub fn rev_for(&self, id: &str) -> Result<String, FlakeEditError>
pub fn rev_for(&self, id: &str) -> Result<String, FlakeEditError>
Query the lock file for a specific rev.
Sourcepub fn nested_input_paths(&self) -> Vec<String>
pub fn nested_input_paths(&self) -> Vec<String>
Get all nested input paths for shell completions. Returns paths like “naersk.nixpkgs”, “naersk.flake-utils”, etc.
Sourcepub fn nested_inputs(&self) -> Vec<NestedInput>
pub fn nested_inputs(&self) -> Vec<NestedInput>
Get all nested inputs with their existing follows targets.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlakeLock
impl<'de> Deserialize<'de> for FlakeLock
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 FlakeLock
impl RefUnwindSafe for FlakeLock
impl Send for FlakeLock
impl Sync for FlakeLock
impl Unpin for FlakeLock
impl UnwindSafe for FlakeLock
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more