Skip to main content

ManifestProjection

Enum ManifestProjection 

Source
pub enum ManifestProjection {
    Installable {
        product: ProductId,
        release: ReleaseId,
        target: String,
        artifacts: Vec<ArtifactRequirement>,
    },
    Archive {
        product: ProductId,
        release: ReleaseId,
        target: String,
        artifact_name: String,
        exact_size: u64,
        sha256: [u8; 32],
        members: Vec<ArchiveMemberRequirement>,
    },
}
Expand description

Manifest projection for one exact canonical target.

Variants§

§

Installable

Direct or bundle files can become one ArtifactSet after acquisition.

Fields

§product: ProductId

Opaque product identity.

§release: ReleaseId

Opaque release identity.

§target: String

Exact selected canonical triple.

§artifacts: Vec<ArtifactRequirement>

Ordered direct or bundle relationships.

§

Archive

Archive facts are retained but require separately qualified extraction.

Fields

§product: ProductId

Opaque product identity.

§release: ReleaseId

Opaque release identity.

§target: String

Exact selected canonical triple.

§artifact_name: String

Archive artifact key.

§exact_size: u64

Exact archive byte count.

§sha256: [u8; 32]

Archive SHA-256 bytes.

§members: Vec<ArchiveMemberRequirement>

Expected member relationships, not verified extracted files.

Implementations§

Source§

impl ManifestProjection

Source

pub fn default_destinations( &self, ) -> Result<HashMap<MemberId, String>, AdapterError>

Manifest-default destinations keyed by stable member identity.

Pure helper with no I/O. For installable projections each entry maps the projected MemberId to its manifest install default destination. For archive projections each entry maps MemberId::new(install) to the manifest install identity. Callers that bind their own destinations do not need this helper; the compatibility wrappers use it to preserve prior default behavior.

Source

pub fn bind_requests( &self, requests: HashMap<String, AcquisitionRequest>, baseline: FetchLimits, ) -> Result<Vec<PlannedAcquisition>, AdapterError>

Bind every artifact to one exact caller-selected request and tightened limit.

Source

pub fn materialize_artifact_set_with_destinations( &self, acquired: HashMap<String, PathBuf>, destinations: HashMap<MemberId, String>, permissions: HashMap<MemberId, PermissionsIntent>, ) -> Result<ArtifactSet, AdapterError>

Validate acquired files and build one all-or-nothing direct/bundle ArtifactSet with caller-bound destinations.

Manifest install values remain producer default identity only: the exact relative destination of every member comes from destinations, which must contain exactly the projected member set. Missing, extra, or colliding destinations fail closed before any set is returned, and invalid destinations fail through Eggup destination validation into a bounded adapter error. Artifact filename to acquired-path relationships, stable member identities, exact sizes, regular-file checks, SHA-256 evidence, and permission binding are unchanged. Replacement authorization stays outside this helper: it records where bytes should be installed and never proves control of a live destination. No URL or filesystem content is echoed in diagnostics.

Source

pub fn materialize_artifact_set( &self, acquired: HashMap<String, PathBuf>, permissions: HashMap<MemberId, PermissionsIntent>, ) -> Result<ArtifactSet, AdapterError>

Validate acquired files and build one all-or-nothing direct/bundle ArtifactSet.

Compatibility wrapper: builds the manifest-default destination map and delegates to materialize_artifact_set_with_destinations. There is one materialization implementation.

Trait Implementations§

Source§

impl Clone for ManifestProjection

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ManifestProjection

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ManifestProjection

Source§

impl PartialEq for ManifestProjection

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ManifestProjection

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.