pub struct CogPackageBody {
pub id: String,
pub version: String,
pub cog_toml: FileRef,
pub binaries: BTreeMap<String, FileRef>,
pub source: PackageSource,
pub attestations: Vec<AttestationRef>,
pub redistributable: bool,
}Expand description
Body of a kind = "cog" manifest.
Fields§
§id: StringCog id from [cog].id.
version: StringCog version from [cog].version.
cog_toml: FileRefThe unmodified cog.toml.
binaries: BTreeMap<String, FileRef>One binary per arch, keyed by arch name.
source: PackageSourceProvenance.
attestations: Vec<AttestationRef>Optional external attestations.
redistributable: boolThe signer states this package may be handed to other nodes (seeded, advertised, served over the swarm). Absent means false: sharing is opt-in, so an operator re-pack of a licence-gated binary is never redistributed by accident. It is part of the signed statement.
Implementations§
Trait Implementations§
Source§impl Clone for CogPackageBody
impl Clone for CogPackageBody
Source§impl Debug for CogPackageBody
impl Debug for CogPackageBody
Source§impl<'de> Deserialize<'de> for CogPackageBody
impl<'de> Deserialize<'de> for CogPackageBody
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
impl Eq for CogPackageBody
Source§impl PartialEq for CogPackageBody
impl PartialEq for CogPackageBody
Source§impl Serialize for CogPackageBody
impl Serialize for CogPackageBody
impl StructuralPartialEq for CogPackageBody
Auto Trait Implementations§
impl Freeze for CogPackageBody
impl RefUnwindSafe for CogPackageBody
impl Send for CogPackageBody
impl Sync for CogPackageBody
impl Unpin for CogPackageBody
impl UnsafeUnpin for CogPackageBody
impl UnwindSafe for CogPackageBody
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,
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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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