pub enum SoftwareSource {
Package(PackageSource),
Registry {
name: String,
version: Option<String>,
},
}Expand description
A software source for crate::AgentOs::install_software and
crate::AgentOsConfig::software_sources.
Variants§
Package(PackageSource)
A URL or trusted local path.
Registry
A package in an agentOS release manifest, resolved on this host to a digest-pinned URL source.
Trait Implementations§
Source§impl Clone for SoftwareSource
impl Clone for SoftwareSource
Source§impl Debug for SoftwareSource
impl Debug for SoftwareSource
impl Eq for SoftwareSource
Source§impl From<PackageSource> for SoftwareSource
impl From<PackageSource> for SoftwareSource
Source§fn from(source: PackageSource) -> Self
fn from(source: PackageSource) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SoftwareSource
impl PartialEq for SoftwareSource
impl StructuralPartialEq for SoftwareSource
Auto Trait Implementations§
impl Freeze for SoftwareSource
impl RefUnwindSafe for SoftwareSource
impl Send for SoftwareSource
impl Sync for SoftwareSource
impl Unpin for SoftwareSource
impl UnsafeUnpin for SoftwareSource
impl UnwindSafe for SoftwareSource
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.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.