pub struct Descriptor {
pub media_type: Option<String>,
pub digest: Option<String>,
pub size: i64,
pub urls: Option<Vec<String>>,
pub annotations: Option<HashMap<String, String>>,
pub platform: Option<Platform>,
}Expand description
Descriptor describes the disposition of targeted content.
This structure provides application/vnd.oci.descriptor.v1+json mediatype
when marshalled to JSON.
Fields§
§media_type: Option<String>MediaType is the media type of the object this schema refers to.
digest: Option<String>Digest is the digest of the targeted content.
size: i64Size specifies the size in bytes of the blob.
urls: Option<Vec<String>>URLs specifies a list of URLs from which this object MAY be downloaded
annotations: Option<HashMap<String, String>>Annotations contains arbitrary metadata relating to the targeted content.
platform: Option<Platform>Platform describes the platform which the image in the manifest runs on. This should only be used when referring to a manifest.
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
Source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Descriptor
impl Debug for Descriptor
Source§impl Default for Descriptor
impl Default for Descriptor
Source§fn default() -> Descriptor
fn default() -> Descriptor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Descriptor
impl<'de> Deserialize<'de> for Descriptor
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
Source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
Source§impl Serialize for Descriptor
impl Serialize for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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