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
artifacts: Vec<ArtifactRequirement>Ordered direct or bundle relationships.
Archive
Archive facts are retained but require separately qualified extraction.
Fields
members: Vec<ArchiveMemberRequirement>Expected member relationships, not verified extracted files.
Implementations§
Source§impl ManifestProjection
impl ManifestProjection
Sourcepub fn default_destinations(
&self,
) -> Result<HashMap<MemberId, String>, AdapterError>
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.
Sourcepub fn bind_requests(
&self,
requests: HashMap<String, AcquisitionRequest>,
baseline: FetchLimits,
) -> Result<Vec<PlannedAcquisition>, AdapterError>
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.
Sourcepub fn materialize_artifact_set_with_destinations(
&self,
acquired: HashMap<String, PathBuf>,
destinations: HashMap<MemberId, String>,
permissions: HashMap<MemberId, PermissionsIntent>,
) -> Result<ArtifactSet, AdapterError>
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.
Sourcepub fn materialize_artifact_set(
&self,
acquired: HashMap<String, PathBuf>,
permissions: HashMap<MemberId, PermissionsIntent>,
) -> Result<ArtifactSet, AdapterError>
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
impl Clone for ManifestProjection
Source§impl Debug for ManifestProjection
impl Debug for ManifestProjection
impl Eq for ManifestProjection
Source§impl PartialEq for ManifestProjection
impl PartialEq for ManifestProjection
impl StructuralPartialEq for ManifestProjection
Auto Trait Implementations§
impl Freeze for ManifestProjection
impl RefUnwindSafe for ManifestProjection
impl Send for ManifestProjection
impl Sync for ManifestProjection
impl Unpin for ManifestProjection
impl UnsafeUnpin for ManifestProjection
impl UnwindSafe for ManifestProjection
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> 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.