pub(crate) enum Prepared {
Published,
Draft(u64),
}Expand description
What StagedRelease::prepare leaves to do.
Variants§
Published
The release was published before and matches the staged files.
Draft(u64)
The draft with this ID holds every artifact and awaits publication.
Implementations§
Source§impl Prepared
impl Prepared
Sourcepub(crate) async fn publish<R: ForgeRelease>(
self,
remote: &R,
) -> Result<(), ArtifactError>
pub(crate) async fn publish<R: ForgeRelease>( self, remote: &R, ) -> Result<(), ArtifactError>
Publish the draft that StagedRelease::prepare completed. A
published release stays as it is.
§Errors
Returns an error when the forge call fails.
Trait Implementations§
impl Copy for Prepared
impl Eq for Prepared
impl StructuralPartialEq for Prepared
Auto Trait Implementations§
impl Freeze for Prepared
impl RefUnwindSafe for Prepared
impl Send for Prepared
impl Sync for Prepared
impl Unpin for Prepared
impl UnsafeUnpin for Prepared
impl UnwindSafe for Prepared
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.