pub struct ObjectOwnership(/* private fields */);Expand description
The container element for object ownership for a bucket's ownership controls.
BucketOwnerPreferred - Objects uploaded to the bucket change ownership to
the bucket owner if the objects are uploaded with the
bucket-owner-full-control canned ACL.
ObjectWriter - The uploading account will own the object if the object is
uploaded with the bucket-owner-full-control canned ACL.
BucketOwnerEnforced - Access control lists (ACLs) are disabled and no
longer affect permissions. The bucket owner automatically owns and has full control over
every object in the bucket. The bucket only accepts PUT requests that don't specify an ACL
or specify bucket owner full control ACLs (such as the predefined
bucket-owner-full-control canned ACL or a custom ACL in XML format that
grants the same permissions).
By default, ObjectOwnership is set to BucketOwnerEnforced and
ACLs are disabled. We recommend keeping ACLs disabled, except in uncommon use cases where
you must control access for each object individually. For more information about S3 Object
Ownership, see Controlling ownership of
objects and disabling ACLs for your bucket in the
Amazon S3 User Guide.
This functionality is not supported for directory buckets. Directory buckets use the bucket owner enforced setting for S3 Object Ownership.
Implementations§
Source§impl ObjectOwnership
impl ObjectOwnership
pub const BUCKET_OWNER_ENFORCED: &'static str = "BucketOwnerEnforced"
pub const BUCKET_OWNER_PREFERRED: &'static str = "BucketOwnerPreferred"
pub const OBJECT_WRITER: &'static str = "ObjectWriter"
pub fn as_str(&self) -> &str
pub fn from_static(s: &'static str) -> Self
Trait Implementations§
Source§impl Clone for ObjectOwnership
impl Clone for ObjectOwnership
Source§fn clone(&self) -> ObjectOwnership
fn clone(&self) -> ObjectOwnership
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObjectOwnership
impl Debug for ObjectOwnership
Source§impl<'xml> DeserializeContent<'xml> for ObjectOwnership
Available on crate feature minio only.
impl<'xml> DeserializeContent<'xml> for ObjectOwnership
minio only.Source§fn deserialize_content(d: &mut Deserializer<'xml>) -> DeResult<Self>
fn deserialize_content(d: &mut Deserializer<'xml>) -> DeResult<Self>
impl Eq for ObjectOwnership
Source§impl From<ObjectOwnership> for Cow<'static, str>
impl From<ObjectOwnership> for Cow<'static, str>
Source§fn from(s: ObjectOwnership) -> Self
fn from(s: ObjectOwnership) -> Self
Source§impl From<String> for ObjectOwnership
impl From<String> for ObjectOwnership
Source§impl FromStr for ObjectOwnership
impl FromStr for ObjectOwnership
Source§impl PartialEq for ObjectOwnership
impl PartialEq for ObjectOwnership
Source§fn eq(&self, other: &ObjectOwnership) -> bool
fn eq(&self, other: &ObjectOwnership) -> bool
self and other values to be equal, and is used by ==.Source§impl SerializeContent for ObjectOwnership
Available on crate feature minio only.
impl SerializeContent for ObjectOwnership
minio only.Source§fn serialize_content<W: Write>(&self, s: &mut Serializer<W>) -> SerResult
fn serialize_content<W: Write>(&self, s: &mut Serializer<W>) -> SerResult
impl StructuralPartialEq for ObjectOwnership
Auto Trait Implementations§
impl Freeze for ObjectOwnership
impl RefUnwindSafe for ObjectOwnership
impl Send for ObjectOwnership
impl Sync for ObjectOwnership
impl Unpin for ObjectOwnership
impl UnsafeUnpin for ObjectOwnership
impl UnwindSafe for ObjectOwnership
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
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
key and return true if they are equal.