Struct object_store::TagSet
source · pub struct TagSet(/* private fields */);Expand description
A collection of key value pairs used to annotate objects
https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-tagging.html https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-tags
Implementations§
source§impl TagSet
impl TagSet
sourcepub fn push(&mut self, key: &str, value: &str)
pub fn push(&mut self, key: &str, value: &str)
Append a key value pair to this TagSet
Stores have different restrictions on what characters are permitted,
for portability it is recommended applications use no more than 10 tags,
and stick to alphanumeric characters, and + - = . _ : /
https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectTagging.html https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-tags?tabs=azure-ad#request-body
Trait Implementations§
source§impl From<TagSet> for PutOptions
impl From<TagSet> for PutOptions
source§impl PartialEq for TagSet
impl PartialEq for TagSet
impl Eq for TagSet
impl StructuralPartialEq for TagSet
Auto Trait Implementations§
impl RefUnwindSafe for TagSet
impl Send for TagSet
impl Sync for TagSet
impl Unpin for TagSet
impl UnwindSafe for TagSet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.