pub struct ImportedLockedFlake { /* private fields */ }Expand description
A locked flake graph imported from an owned export payload.
This is intentionally narrower than LockedFlake. It contains enough
graph state to evaluate outputs through Nix’s callFlake, but it is not a
general-purpose replacement for a flake freshly returned by
LockedFlake::lock.
Implementations§
Source§impl ImportedLockedFlake
impl ImportedLockedFlake
Sourcepub fn import_json(
context: &Arc<Context>,
fetch_settings: &FetchersSettings,
json: &str,
) -> Result<Self>
pub fn import_json( context: &Arc<Context>, fetch_settings: &FetchersSettings, json: &str, ) -> Result<Self>
Import a locked flake graph from an owned JSON graph.
The root flake and inputs are taken from json; this does not resolve a
flake reference, update inputs, or write a lock file.
§Errors
Returns an error if the C API call fails or returns a null pointer.
Sourcepub fn output_attrs<'s>(
&self,
flake_settings: &FlakeSettings,
eval_state: &'s EvalState,
) -> Result<Value<'s>>
pub fn output_attrs<'s>( &self, flake_settings: &FlakeSettings, eval_state: &'s EvalState, ) -> Result<Value<'s>>
Trait Implementations§
Source§impl Drop for ImportedLockedFlake
impl Drop for ImportedLockedFlake
impl Send for ImportedLockedFlake
Auto Trait Implementations§
impl Freeze for ImportedLockedFlake
impl RefUnwindSafe for ImportedLockedFlake
impl !Sync for ImportedLockedFlake
impl Unpin for ImportedLockedFlake
impl UnsafeUnpin for ImportedLockedFlake
impl UnwindSafe for ImportedLockedFlake
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