#[non_exhaustive]pub struct ArtifactFormat {
pub media_type: String,
pub description: Option<String>,
pub url: Option<String>,
pub signature_url: Option<String>,
pub checksums: Option<Vec<Checksum>>,
}Expand description
One format of an artifact revision.
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.media_type: StringMedia type. Unique within the revision.
description: Option<String>Description.
url: Option<String>External content URL. When set, clients retrieve content from it.
signature_url: Option<String>External detached-signature URL.
checksums: Option<Vec<Checksum>>Checksums of the content bytes after HTTP content coding is removed.
Implementations§
Trait Implementations§
Source§impl Clone for ArtifactFormat
impl Clone for ArtifactFormat
Source§impl Debug for ArtifactFormat
impl Debug for ArtifactFormat
Source§impl<'de> Deserialize<'de> for ArtifactFormat
impl<'de> Deserialize<'de> for ArtifactFormat
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 ArtifactFormat
Source§impl PartialEq for ArtifactFormat
impl PartialEq for ArtifactFormat
Source§impl Serialize for ArtifactFormat
impl Serialize for ArtifactFormat
impl StructuralPartialEq for ArtifactFormat
Auto Trait Implementations§
impl Forget for ArtifactFormat
impl Freeze for ArtifactFormat
impl Move for ArtifactFormat
impl RefUnwindSafe for ArtifactFormat
impl Send for ArtifactFormat
impl Sync for ArtifactFormat
impl Unpin for ArtifactFormat
impl UnsafeUnpin for ArtifactFormat
impl UnwindSafe for ArtifactFormat
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