pub struct AclHeader { /* private fields */ }
Implementations§
Source§impl AclHeader
impl AclHeader
pub fn new() -> AclHeader
pub fn get_headers(&self) -> &HashMap<String, String>
Sourcepub fn insert_object_x_cos_acl(&mut self, x_cos_acl: ObjectAcl) -> &mut Self
pub fn insert_object_x_cos_acl(&mut self, x_cos_acl: ObjectAcl) -> &mut Self
插入object x-cos-acl 定义对象的访问控制列表(ACL)属性。枚举值请参见 ACL 概述 文档中对象的预设 ACL 部分, 例如 default,private,public-read 等,默认为 default 注意:如果您不需要进行对象 ACL 控制,请设置为 default 或者此项不进行设置,默认继承存储桶权限
Sourcepub fn insert_x_cos_grant_read(&mut self, x_cos_grant_read: String) -> &mut Self
pub fn insert_x_cos_grant_read(&mut self, x_cos_grant_read: String) -> &mut Self
赋予被授权者读取对象(桶)的权限,格式为 id=“[OwnerUin]”, 例如 id=“100000000001”,可使用半角逗号(,)分隔多组被授权者,例如id=“100000000001”,id=“100000000002”
Sourcepub fn insert_x_cos_grant_read_acp(
&mut self,
x_cos_grant_read_acp: String,
) -> &mut Self
pub fn insert_x_cos_grant_read_acp( &mut self, x_cos_grant_read_acp: String, ) -> &mut Self
赋予被授权者读取对象(桶)的访问控制列表(ACL)的权限,格式为 id=“[OwnerUin]”, 例如 id=“100000000001”,可使用半角逗号(,)分隔多组被授权者,例如id=“100000000001”,id=“100000000002”
Sourcepub fn insert_x_cos_grant_write_acp(
&mut self,
x_cos_grant_write_acp: String,
) -> &mut Self
pub fn insert_x_cos_grant_write_acp( &mut self, x_cos_grant_write_acp: String, ) -> &mut Self
赋予被授权者写入对象(桶)的访问控制列表(ACL)的权限,格式为 id=“[OwnerUin]”, 例如 id=“100000000001”,可使用半角逗号(,)分隔多组被授权者,例如id=“100000000001”,id=“100000000002”
Sourcepub fn insert_x_cos_grant_full_control(
&mut self,
x_cos_grant_full_control: String,
) -> &mut Self
pub fn insert_x_cos_grant_full_control( &mut self, x_cos_grant_full_control: String, ) -> &mut Self
赋予被授权者操作对象(桶)的所有权限,格式为 id=“[OwnerUin]”, 例如 id=“100000000001”,可使用半角逗号(,)分隔多组被授权者,例如id=“100000000001”,id=“100000000002”
Sourcepub fn insert_bucket_x_cos_acl(&mut self, x_cos_acl: BucketAcl) -> &mut Self
pub fn insert_bucket_x_cos_acl(&mut self, x_cos_acl: BucketAcl) -> &mut Self
定义存储桶的访问控制列表(ACL)属性。枚举值请参见 ACL 概述 文档中存储桶的预设 ACL 部分, 如 private,public-read 等,默认为 private
Sourcepub fn insert_bucket_x_cos_grant_write(
&mut self,
x_cos_grant_write: String,
) -> &mut Self
pub fn insert_bucket_x_cos_grant_write( &mut self, x_cos_grant_write: String, ) -> &mut Self
赋予被授权者写入存储桶的权限,格式为 id=“[OwnerUin]”, 如 id=“100000000001”,可使用半角逗号(,)分隔多组被授权者,如 id=“100000000001”,id=“100000000002”