Skip to content

Commit

Permalink
Add get_mut to annotations and manifests in ImageIndex
Browse files Browse the repository at this point in the history
Analogous to get_mut for annotations and layers in ImageManifest.

Fixes #218

Signed-off-by: Lukasz Pawelczyk <[email protected]>
  • Loading branch information
Havner committed Sep 12, 2024
1 parent 036a239 commit eae623f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/image/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Descriptor>,
/// This OPTIONAL property specifies a descriptor of another manifest. This value, used by the
/// referrers API, indicates a relationship to the specified manifest.
Expand All @@ -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<HashMap<String, String>>,
}
Expand Down

0 comments on commit eae623f

Please sign in to comment.