From eae623f16f29d4c8faab77d66f0e7b7133d60c19 Mon Sep 17 00:00:00 2001 From: Lukasz Pawelczyk Date: Thu, 12 Sep 2024 14:10:54 +0200 Subject: [PATCH] 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 --- src/image/index.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image/index.rs b/src/image/index.rs index fa4a0b7027..68d132e7ca 100644 --- a/src/image/index.rs +++ b/src/image/index.rs @@ -54,7 +54,7 @@ pub struct ImageIndex { /// This REQUIRED property contains a list of manifests for specific /// platforms. While this property MUST be present, the size of /// the array MAY be zero. - #[getset(get = "pub", set = "pub")] + #[getset(get_mut = "pub", get = "pub", set = "pub")] manifests: Vec, /// This OPTIONAL property specifies a descriptor of another manifest. This value, used by the /// referrers API, indicates a relationship to the specified manifest. @@ -65,7 +65,7 @@ pub struct ImageIndex { /// This OPTIONAL property contains arbitrary metadata for the image /// index. This OPTIONAL property MUST use the annotation rules. #[serde(skip_serializing_if = "Option::is_none")] - #[getset(get = "pub", set = "pub")] + #[getset(get_mut = "pub", get = "pub", set = "pub")] #[builder(default)] annotations: Option>, }