pub enum PackageTrust {
Unsigned,
AdoptedUnverified,
ProjectCert,
SignedUnpinned,
OperatorAttested,
PinnedSigner,
}Expand description
How far the package’s provenance can be trusted (ADR-099 section 8).
Ordered from least to most trusted, so >= comparisons express
“at least this trusted”.
Variants§
Unsigned
No valid signature.
AdoptedUnverified
A server somebody else started, registered and observed by an
adopted-mode inference adapter (ADR-101): nothing about it was
verified. Ordered just above Unsigned so no signed or attested
minimum is satisfied by it; only a permit that names it matches.
ProjectCert
Authorised by a project certificate chained to the user key (the
project kind, ADR-103 A6). Ordered just above Unsigned so it never
satisfies the signed-package minimums cog permits ask for; only a
permit that names it (min_package_trust = project_cert) matches.
SignedUnpinned
Signed, but not by a pinned signer.
OperatorAttested
Operator attestation over a hash manifest (model weights, ADR-101).
PinnedSigner
At least one valid signature from a pinned signer.
Trait Implementations§
Source§impl Clone for PackageTrust
impl Clone for PackageTrust
impl Copy for PackageTrust
Source§impl Debug for PackageTrust
impl Debug for PackageTrust
Source§impl<'de> Deserialize<'de> for PackageTrust
impl<'de> Deserialize<'de> for PackageTrust
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>,
impl Eq for PackageTrust
Source§impl Hash for PackageTrust
impl Hash for PackageTrust
Source§impl Ord for PackageTrust
impl Ord for PackageTrust
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PackageTrust
impl PartialEq for PackageTrust
Source§impl PartialOrd for PackageTrust
impl PartialOrd for PackageTrust
Source§impl Serialize for PackageTrust
impl Serialize for PackageTrust
impl StructuralPartialEq for PackageTrust
Auto Trait Implementations§
impl Freeze for PackageTrust
impl RefUnwindSafe for PackageTrust
impl Send for PackageTrust
impl Sync for PackageTrust
impl Unpin for PackageTrust
impl UnsafeUnpin for PackageTrust
impl UnwindSafe for PackageTrust
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more