AclHeader

Struct AclHeader 

Source
pub struct AclHeader { /* private fields */ }

Implementations§

Source§

impl AclHeader

Source

pub fn new() -> AclHeader

Source

pub fn get_headers(&self) -> &HashMap<String, String>

Source

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 或者此项不进行设置,默认继承存储桶权限

Source

pub fn insert_x_cos_grant_read(&mut self, x_cos_grant_read: String) -> &mut Self

赋予被授权者读取对象(桶)的权限,格式为 id=“[OwnerUin]”, 例如 id=“100000000001”,可使用半角逗号(,)分隔多组被授权者,例如id=“100000000001”,id=“100000000002”

Source

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”

Source

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”

Source

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”

Source

pub fn insert_bucket_x_cos_acl(&mut self, x_cos_acl: BucketAcl) -> &mut Self

定义存储桶的访问控制列表(ACL)属性。枚举值请参见 ACL 概述 文档中存储桶的预设 ACL 部分, 如 private,public-read 等,默认为 private

Source

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”

Trait Implementations§

Source§

impl Debug for AclHeader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AclHeader

Source§

fn default() -> AclHeader

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,