pub enum ObjectAcl {
DEFAULT,
PRIVATE,
PublicRead,
AuthenticatedRead,
BucketOwnerRead,
BucketOwnerFullControl,
}
Expand description
对象的预设 ACL, 见文档
Variants§
DEFAULT
空描述,此时根据各级目录的显式设置及存储桶的设置来确定是否允许请求(默认)
PRIVATE
创建者(主账号)具备 FULL_CONTROL 权限,其他人没有权限
PublicRead
创建者具备 FULL_CONTROL 权限,匿名用户组具备 READ 权限
AuthenticatedRead
创建者具备 FULL_CONTROL 权限,认证用户组具备 READ 权限
BucketOwnerRead
创建者具备 FULL_CONTROL 权限,存储桶拥有者具备 READ 权限
BucketOwnerFullControl
创建者和存储桶拥有者都具备 FULL_CONTROL 权限
Trait Implementations§
impl StructuralPartialEq for ObjectAcl
Auto Trait Implementations§
impl Freeze for ObjectAcl
impl RefUnwindSafe for ObjectAcl
impl Send for ObjectAcl
impl Sync for ObjectAcl
impl Unpin for ObjectAcl
impl UnwindSafe for ObjectAcl
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