Skip to content

Commit 2eadbde

Browse files
authored
support tags in list blobs operation (#410)
1 parent eccb473 commit 2eadbde

File tree

1 file changed

+21
-0
lines changed
  • sdk/storage/src/blob/blob

1 file changed

+21
-0
lines changed

sdk/storage/src/blob/blob/mod.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,26 @@ pub struct Blob {
104104
pub is_current_version: Option<bool>,
105105
pub deleted: Option<bool>,
106106
pub properties: BlobProperties,
107+
pub tags: Option<Tags>,
108+
}
109+
110+
#[derive(Debug, Clone, PartialEq, Deserialize)]
111+
#[serde(rename_all = "PascalCase")]
112+
pub struct Tags {
113+
pub tag_set: Option<TagSet>,
114+
}
115+
116+
#[derive(Debug, Clone, PartialEq, Deserialize)]
117+
#[serde(rename_all = "PascalCase")]
118+
pub struct TagSet {
119+
pub tag: Vec<Tag>,
120+
}
121+
122+
#[derive(Debug, Clone, PartialEq, Deserialize)]
123+
#[serde(rename_all = "PascalCase")]
124+
pub struct Tag {
125+
pub key: String,
126+
pub value: String,
107127
}
108128

109129
#[derive(Debug, Clone, PartialEq, Deserialize)]
@@ -369,6 +389,7 @@ impl Blob {
369389
metadata,
370390
extra: HashMap::new(),
371391
},
392+
tags: None,
372393
})
373394
}
374395
}

0 commit comments

Comments
 (0)