pub struct ReferrerDescriptor {
pub media_type: String,
pub digest: Digest,
pub size: u64,
pub artifact_type: Option<String>,
pub annotations: Option<BTreeMap<String, String>>,
}Expand description
Descriptor returned by the referrers API.
Spec §3.3: the response body is an OCI image index whose
manifests array contains one of these per referrer.
Fields§
§media_type: StringMedia type of the referring manifest.
digest: DigestDigest of the referring manifest.
size: u64Size in bytes of the referring manifest.
artifact_type: Option<String>Optional artifact type, used as the filter key.
annotations: Option<BTreeMap<String, String>>Optional annotations.
Trait Implementations§
Source§impl Clone for ReferrerDescriptor
impl Clone for ReferrerDescriptor
Source§fn clone(&self) -> ReferrerDescriptor
fn clone(&self) -> ReferrerDescriptor
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 ReferrerDescriptor
impl Debug for ReferrerDescriptor
Source§impl<'de> Deserialize<'de> for ReferrerDescriptor
impl<'de> Deserialize<'de> for ReferrerDescriptor
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 ReferrerDescriptor
impl PartialEq for ReferrerDescriptor
Source§impl Serialize for ReferrerDescriptor
impl Serialize for ReferrerDescriptor
impl Eq for ReferrerDescriptor
impl StructuralPartialEq for ReferrerDescriptor
Auto Trait Implementations§
impl Freeze for ReferrerDescriptor
impl RefUnwindSafe for ReferrerDescriptor
impl Send for ReferrerDescriptor
impl Sync for ReferrerDescriptor
impl Unpin for ReferrerDescriptor
impl UnsafeUnpin for ReferrerDescriptor
impl UnwindSafe for ReferrerDescriptor
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