Skip to content

Commit eae623f

Browse files
committed
Add get_mut to annotations and manifests in ImageIndex
Analogous to get_mut for annotations and layers in ImageManifest. Fixes #218 Signed-off-by: Lukasz Pawelczyk <[email protected]>
1 parent 036a239 commit eae623f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/image/index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub struct ImageIndex {
5454
/// This REQUIRED property contains a list of manifests for specific
5555
/// platforms. While this property MUST be present, the size of
5656
/// the array MAY be zero.
57-
#[getset(get = "pub", set = "pub")]
57+
#[getset(get_mut = "pub", get = "pub", set = "pub")]
5858
manifests: Vec<Descriptor>,
5959
/// This OPTIONAL property specifies a descriptor of another manifest. This value, used by the
6060
/// referrers API, indicates a relationship to the specified manifest.
@@ -65,7 +65,7 @@ pub struct ImageIndex {
6565
/// This OPTIONAL property contains arbitrary metadata for the image
6666
/// index. This OPTIONAL property MUST use the annotation rules.
6767
#[serde(skip_serializing_if = "Option::is_none")]
68-
#[getset(get = "pub", set = "pub")]
68+
#[getset(get_mut = "pub", get = "pub", set = "pub")]
6969
#[builder(default)]
7070
annotations: Option<HashMap<String, String>>,
7171
}

0 commit comments

Comments
 (0)