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 PutMultipartOpts
impl From<TagSet> for PutMultipartOpts
source§impl From<TagSet> for PutOptions
impl From<TagSet> for PutOptions
impl Eq for TagSet
impl StructuralPartialEq for TagSet
Auto Trait Implementations§
impl Freeze for TagSet
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more