pub enum VersioningState {
Enabled,
Suspended,
Unversioned,
}Expand description
Per-bucket versioning state。AWS S3 では Enabled / Suspended の二択
(作成直後の bucket は status 未設定 = Unversioned 相当) なので、3 値に分けて
管理する。
Variants§
Enabled
PUT は新 version_id を採番、DELETE は delete marker を追加。
Suspended
PUT は version_id = "null" で既存 null version を overwrite、
DELETE は null delete marker を追加 (chain 中の他 version は残る)。
Unversioned
旧来の non-versioned 動作 (S4 が version index を持たない bucket。
get_bucket_versioning は None 相当を返す)。
Implementations§
Source§impl VersioningState
impl VersioningState
Sourcepub fn as_aws_status(self) -> Option<&'static str>
pub fn as_aws_status(self) -> Option<&'static str>
AWS wire format ("Enabled" / "Suspended" / "") との往復用。
Trait Implementations§
Source§impl Clone for VersioningState
impl Clone for VersioningState
Source§fn clone(&self) -> VersioningState
fn clone(&self) -> VersioningState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VersioningState
impl Debug for VersioningState
Source§impl<'de> Deserialize<'de> for VersioningState
impl<'de> Deserialize<'de> for VersioningState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VersioningState
impl PartialEq for VersioningState
Source§fn eq(&self, other: &VersioningState) -> bool
fn eq(&self, other: &VersioningState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VersioningState
impl Serialize for VersioningState
impl Copy for VersioningState
impl Eq for VersioningState
impl StructuralPartialEq for VersioningState
Auto Trait Implementations§
impl Freeze for VersioningState
impl RefUnwindSafe for VersioningState
impl Send for VersioningState
impl Sync for VersioningState
impl Unpin for VersioningState
impl UnsafeUnpin for VersioningState
impl UnwindSafe for VersioningState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§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.