pub enum PackageSource {
Url {
url: String,
expected_digest: Option<String>,
},
Path {
path: String,
expected_digest: Option<String>,
},
}Expand description
Trusted Core package locator. Hosted adapters must define their own URL-only DTO rather than deserializing this enum directly.
Variants§
Trait Implementations§
Source§impl Clone for PackageSource
impl Clone for PackageSource
Source§impl Debug for PackageSource
impl Debug for PackageSource
impl Eq for PackageSource
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 PackageSource
impl PartialEq for PackageSource
impl StructuralPartialEq for PackageSource
Auto Trait Implementations§
impl Forget for PackageSource
impl Freeze for PackageSource
impl Move for PackageSource
impl RefUnwindSafe for PackageSource
impl Send for PackageSource
impl Sync for PackageSource
impl Unpin for PackageSource
impl UnsafeUnpin for PackageSource
impl UnwindSafe for PackageSource
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.