Skip to content

Commit

Permalink
Merge pull request #219 from Havner/main
Browse files Browse the repository at this point in the history
Add get_mut to annotations and manifests in ImageIndex
  • Loading branch information
saschagrunert authored Sep 12, 2024
2 parents 036a239 + eae623f commit 610da48
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 610da48

Please sign in to comment.