pub struct ResolvedRelease {
pub selector: Selector,
pub version: Version,
pub registry_checksum: Option<Sha256>,
pub payload_sha256: Sha256,
pub yanked: bool,
pub bundle: Box<dyn ReleaseBundle>,
}Expand description
One selector, frozen to one verified bundle.
Fields§
§selector: SelectorWhat the caller asked for.
version: VersionThe exact release the selector resolved to.
registry_checksum: Option<Sha256>The registry’s checksum for the archive, where a registry served it.
payload_sha256: Sha256The digest over the bundle’s content.
yanked: boolWhether the registry marks this release yanked.
bundle: Box<dyn ReleaseBundle>The bundle itself.
Implementations§
Source§impl ResolvedRelease
impl ResolvedRelease
Sourcepub fn canon_version(&self) -> Result<CanonVersion, AppError>
pub fn canon_version(&self) -> Result<CanonVersion, AppError>
The resolved version as the installed record spells it.
§Errors
AppError::Refused where the release is a prerelease or carries
build metadata. A record holds a released triple, so a plan toward
anything else has nothing to write into one.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ResolvedRelease
impl !UnwindSafe for ResolvedRelease
impl Freeze for ResolvedRelease
impl Send for ResolvedRelease
impl Sync for ResolvedRelease
impl Unpin for ResolvedRelease
impl UnsafeUnpin for ResolvedRelease
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