@@ -50,6 +50,15 @@ pub struct ImageManifest {
50
50
#[ getset( get = "pub" , set = "pub" ) ]
51
51
#[ builder( default ) ]
52
52
media_type : Option < MediaType > ,
53
+ /// This OPTIONAL property contains the type of an artifact when the manifest is used for an
54
+ /// artifact. This MUST be set when config.mediaType is set to the empty value. If defined, the
55
+ /// value MUST comply with RFC 6838, including the naming requirements in its section 4.2, and
56
+ /// MAY be registered with IANA. Implementations storing or copying image manifests MUST NOT
57
+ /// error on encountering an artifactType that is unknown to the implementation.
58
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
59
+ #[ getset( get = "pub" , set = "pub" ) ]
60
+ #[ builder( default ) ]
61
+ artifact_type : Option < MediaType > ,
53
62
/// This REQUIRED property references a configuration object for a
54
63
/// container, by digest. Beyond the descriptor requirements,
55
64
/// the value has the following additional restrictions:
@@ -69,6 +78,12 @@ pub struct ImageManifest {
69
78
/// attributes of the initial empty directory are unspecified.
70
79
#[ getset( get_mut = "pub" , get = "pub" , set = "pub" ) ]
71
80
layers : Vec < Descriptor > ,
81
+ /// This OPTIONAL property specifies a descriptor of another manifest. This value, used by the
82
+ /// referrers API, indicates a relationship to the specified manifest.
83
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
84
+ #[ getset( get = "pub" , set = "pub" ) ]
85
+ #[ builder( default ) ]
86
+ subject : Option < Descriptor > ,
72
87
/// This OPTIONAL property contains arbitrary metadata for the image
73
88
/// manifest. This OPTIONAL property MUST use the annotation
74
89
/// rules.
0 commit comments