#[non_exhaustive]pub struct Resolved {
pub name: String,
pub version: Version,
pub tarball_url: String,
pub integrity: Option<String>,
}Expand description
A resolved package version: the exact version, the tarball to fetch, and the
registry’s dist.integrity SRI for that tarball (when the packument publishes one).
#[non_exhaustive] so further fields can be added without a breaking change — this
type is only ever constructed inside the crate; callers receive and read it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§version: Version§tarball_url: String§integrity: Option<String>The registry’s Subresource-Integrity hash (sha512-<base64>), when the packument
carries one — verified against the downloaded bytes before extraction. None for a
synthesized tarball URL or a packument entry without dist.integrity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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