pub struct InstallConfig {
pub target: PathBuf,
pub default_registry: Option<String>,
}Fields§
§target: PathBuf§default_registry: Option<String>Registry alias used to resolve bare install sources that omit
the <registry>: prefix. Set via knack init (defaults to
"public" when the public registry is seeded) or by hand.
With this set to "public", knack add anthropics/pdf
resolves the same as knack add public:anthropics/pdf, and
knack add pdf resolves as knack add public:pdf (which the
registry then soft-resolves under its own namespace via
X-Knack-Namespace). None means “no implicit default”; the CLI
falls back to auto-defaulting when exactly one registry is
configured, and errors on ambiguity otherwise.
Layered through the system → global → project scopes like
[registries.*], last-write-wins.
Trait Implementations§
Source§impl Clone for InstallConfig
impl Clone for InstallConfig
Source§fn clone(&self) -> InstallConfig
fn clone(&self) -> InstallConfig
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 InstallConfig
impl Debug for InstallConfig
Source§impl<'de> Deserialize<'de> for InstallConfig
impl<'de> Deserialize<'de> for InstallConfig
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 InstallConfig
impl RefUnwindSafe for InstallConfig
impl Send for InstallConfig
impl Sync for InstallConfig
impl Unpin for InstallConfig
impl UnsafeUnpin for InstallConfig
impl UnwindSafe for InstallConfig
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