pub(crate) struct StagedRelease<'a> {
publication: Publication<'a>,
assets: Vec<LocalAsset>,
pushes: Vec<OciPush>,
}Expand description
One unit’s forge release with its local files read and checked.
Fields§
§publication: Publication<'a>§assets: Vec<LocalAsset>§pushes: Vec<OciPush>Implementations§
Source§impl StagedRelease<'_>
impl StagedRelease<'_>
Sourcepub(crate) async fn prepare<R: ForgeRelease>(
&self,
remote: &R,
) -> Result<Prepared, ArtifactError>
pub(crate) async fn prepare<R: ForgeRelease>( &self, remote: &R, ) -> Result<Prepared, ArtifactError>
Complete the release’s artifacts: create a missing draft, replace wrong assets on a draft, and push OCI artifacts. A published release is only verified, and only when the unit declares artifacts.
§Errors
Returns an error when a forge call or a push fails, or when a published release differs from the staged files.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StagedRelease<'a>
impl<'a> RefUnwindSafe for StagedRelease<'a>
impl<'a> Send for StagedRelease<'a>
impl<'a> Sync for StagedRelease<'a>
impl<'a> Unpin for StagedRelease<'a>
impl<'a> UnsafeUnpin for StagedRelease<'a>
impl<'a> UnwindSafe for StagedRelease<'a>
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