#[non_exhaustive]pub struct DownloadedArtifact {
pub bytes: Vec<u8>,
pub content_type: Option<String>,
pub content_encoding: Option<String>,
pub etag: Option<String>,
pub strong_etag: bool,
pub cache_control: Option<String>,
pub content_location: Option<String>,
pub vary: Option<String>,
pub repr_digest: Option<String>,
pub final_url: String,
pub integrity: IntegrityReport,
}Expand description
Bytes of an artifact or signature after HTTP content coding is removed.
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.bytes: Vec<u8>Decoded bytes.
content_type: Option<String>Response Content-Type.
content_encoding: Option<String>HTTP content coding that was removed, when one was declared.
etag: Option<String>ETag as received. This is not a checksum.
strong_etag: boolWhether the tag is strong. A weak tag is not byte-identity proof.
cache_control: Option<String>Cache-Control as received. This client does not store a cache.
content_location: Option<String>Content-Location as received.
vary: Option<String>Vary as received.
repr_digest: Option<String>Repr-Digest as received. It covers the HTTP representation, not the artifact checksum.
final_url: StringFinal URL after redirects.
integrity: IntegrityReportChecksum report. IntegrityOutcome::Verified means every declared
checksum matched decoded artifact bytes — not publisher authenticity.
A match on weak algorithms only (SHA-1) is an error unless
crate::ClientBuilder::allow_weak_checksums is set.
Trait Implementations§
Source§impl Clone for DownloadedArtifact
impl Clone for DownloadedArtifact
Source§impl Debug for DownloadedArtifact
impl Debug for DownloadedArtifact
impl Eq for DownloadedArtifact
Source§impl PartialEq for DownloadedArtifact
impl PartialEq for DownloadedArtifact
impl StructuralPartialEq for DownloadedArtifact
Auto Trait Implementations§
impl Forget for DownloadedArtifact
impl Freeze for DownloadedArtifact
impl RefUnwindSafe for DownloadedArtifact
impl Send for DownloadedArtifact
impl Sync for DownloadedArtifact
impl Unpin for DownloadedArtifact
impl UnsafeUnpin for DownloadedArtifact
impl UnwindSafe for DownloadedArtifact
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