pub struct ArtifactBundleFile {
pub file_name: String,
pub media_type: String,
pub sha256: String,
}Expand description
One file inside an artifact bundle tar.
Fields§
§file_name: StringFile name as it appears inside the bundle.
media_type: StringMedia type of the uncompressed file.
sha256: StringSHA-256 of the file’s bytes, hex-encoded.
Implementations§
Source§impl ArtifactBundleFile
impl ArtifactBundleFile
Sourcepub fn storage_media_type(&self) -> String
pub fn storage_media_type(&self) -> String
Media type this file is stored under in the OCI layer — the plain
media type plus the +zstd compression suffix.
Trait Implementations§
Source§impl Clone for ArtifactBundleFile
impl Clone for ArtifactBundleFile
Source§impl Debug for ArtifactBundleFile
impl Debug for ArtifactBundleFile
Source§impl<'de> Deserialize<'de> for ArtifactBundleFile
impl<'de> Deserialize<'de> for ArtifactBundleFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArtifactBundleFile
Source§impl PartialEq for ArtifactBundleFile
impl PartialEq for ArtifactBundleFile
Source§impl Serialize for ArtifactBundleFile
impl Serialize for ArtifactBundleFile
impl StructuralPartialEq for ArtifactBundleFile
Auto Trait Implementations§
impl Freeze for ArtifactBundleFile
impl RefUnwindSafe for ArtifactBundleFile
impl Send for ArtifactBundleFile
impl Sync for ArtifactBundleFile
impl Unpin for ArtifactBundleFile
impl UnsafeUnpin for ArtifactBundleFile
impl UnwindSafe for ArtifactBundleFile
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.