pub struct LockedInput {
pub source_type: String,
pub owner: Option<String>,
pub repo: Option<String>,
pub rev: Option<String>,
pub nar_hash: Option<String>,
pub last_modified: Option<u64>,
pub path: Option<String>,
pub url: Option<String>,
pub git_ref: Option<String>,
pub dir: Option<String>,
pub host: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
Locked (pinned) revision of a flake input.
Fields§
§source_type: String§owner: Option<String>§repo: Option<String>§rev: Option<String>§nar_hash: Option<String>§last_modified: Option<u64>§path: Option<String>For type = "path" inputs.
url: Option<String>For type = "tarball" or type = "file" inputs.
git_ref: Option<String>For specific git refs (e.g. "refs/heads/main").
dir: Option<String>Git directory (subdir within repo).
host: Option<String>Custom host for github / gitlab / sourcehut inputs
(e.g. gitlab.gnome.org, git.example.com). When absent,
the platform default is used (gitlab.com etc).
extra: BTreeMap<String, Value>Any other fields nix decides to add in the future (e.g.
revCount, submodules, shallow). Flattened so they
round-trip without losing data.
Trait Implementations§
Source§impl Clone for LockedInput
impl Clone for LockedInput
Source§fn clone(&self) -> LockedInput
fn clone(&self) -> LockedInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LockedInput
impl Debug for LockedInput
Source§impl<'de> Deserialize<'de> for LockedInput
impl<'de> Deserialize<'de> for LockedInput
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
impl Eq for LockedInput
Source§impl PartialEq for LockedInput
impl PartialEq for LockedInput
Source§fn eq(&self, other: &LockedInput) -> bool
fn eq(&self, other: &LockedInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LockedInput
impl Serialize for LockedInput
impl StructuralPartialEq for LockedInput
Auto Trait Implementations§
impl Freeze for LockedInput
impl RefUnwindSafe for LockedInput
impl Send for LockedInput
impl Sync for LockedInput
impl Unpin for LockedInput
impl UnsafeUnpin for LockedInput
impl UnwindSafe for LockedInput
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