pub struct CatalogEntry {
pub name: String,
pub description: String,
pub flake_ref: String,
pub profile: String,
pub default_cpus: u8,
pub default_memory_mib: u32,
pub tags: Vec<String>,
}Expand description
An entry in the Nix-based image catalog.
Each entry maps a human-friendly name to a Nix flake reference.
Running mvmctl image fetch <name> creates a template from this
entry’s flake_ref and builds it via Nix.
Fields§
§name: StringHuman-friendly image name (e.g. “minimal”, “http-server”).
description: StringShort description of the image.
flake_ref: StringNix flake reference (e.g. “github:auser/mvm-images#minimal”).
profile: StringNix profile to build (e.g. “minimal”, “gateway”).
default_cpus: u8Default vCPU count.
default_memory_mib: u32Default memory in MiB.
Searchable tags (e.g. [“base”, “minimal”, “nix”]).
Trait Implementations§
Source§impl Clone for CatalogEntry
impl Clone for CatalogEntry
Source§fn clone(&self) -> CatalogEntry
fn clone(&self) -> CatalogEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 CatalogEntry
impl Debug for CatalogEntry
Source§impl<'de> Deserialize<'de> for CatalogEntry
impl<'de> Deserialize<'de> for CatalogEntry
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
Source§impl PartialEq for CatalogEntry
impl PartialEq for CatalogEntry
Source§impl Serialize for CatalogEntry
impl Serialize for CatalogEntry
impl Eq for CatalogEntry
impl StructuralPartialEq for CatalogEntry
Auto Trait Implementations§
impl Freeze for CatalogEntry
impl RefUnwindSafe for CatalogEntry
impl Send for CatalogEntry
impl Sync for CatalogEntry
impl Unpin for CatalogEntry
impl UnsafeUnpin for CatalogEntry
impl UnwindSafe for CatalogEntry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.