pub struct V1Descriptor {
pub annotations: Option<Value>,
pub urls: Option<Vec<String>>,
pub size: Option<i64>,
pub artifact_type: Option<String>,
pub data: Option<Vec<i64>>,
pub digest: Option<String>,
pub media_type: Option<String>,
pub platform: Option<Value>,
}
Expand description
V1Descriptor 模型
Fields§
§annotations: Option<Value>
§urls: Option<Vec<String>>
§size: Option<i64>
§artifact_type: Option<String>
§data: Option<Vec<i64>>
§digest: Option<String>
§media_type: Option<String>
§platform: Option<Value>
Trait Implementations§
Source§impl Clone for V1Descriptor
impl Clone for V1Descriptor
Source§fn clone(&self) -> V1Descriptor
fn clone(&self) -> V1Descriptor
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 V1Descriptor
impl Debug for V1Descriptor
Source§impl<'de> Deserialize<'de> for V1Descriptor
impl<'de> Deserialize<'de> for V1Descriptor
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
Auto Trait Implementations§
impl Freeze for V1Descriptor
impl RefUnwindSafe for V1Descriptor
impl Send for V1Descriptor
impl Sync for V1Descriptor
impl Unpin for V1Descriptor
impl UnwindSafe for V1Descriptor
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