Struct cloud_storage::client::ObjectAccessControlClient
source · [−]pub struct ObjectAccessControlClient<'a>(_);
Expand description
Operations on ObjectAccessControl
s.
Implementations
sourceimpl<'a> ObjectAccessControlClient<'a>
impl<'a> ObjectAccessControlClient<'a>
sourcepub async fn create(
&self,
bucket: &str,
object: &str,
new_object_access_control: &NewObjectAccessControl
) -> Result<ObjectAccessControl>
pub async fn create(
&self,
bucket: &str,
object: &str,
new_object_access_control: &NewObjectAccessControl
) -> Result<ObjectAccessControl>
Creates a new ACL entry on the specified object
.
Important
This method fails with a 400 Bad Request response for buckets with uniform
bucket-level access enabled. Use Bucket::get_iam_policy
and Bucket::set_iam_policy
to
control access instead.
sourcepub async fn list(
&self,
bucket: &str,
object: &str
) -> Result<Vec<ObjectAccessControl>>
pub async fn list(
&self,
bucket: &str,
object: &str
) -> Result<Vec<ObjectAccessControl>>
Retrieves ACL
entries on the specified object.
Important
Important: This method fails with a 400 Bad Request response for buckets with uniform
bucket-level access enabled. Use Bucket::get_iam_policy
and Bucket::set_iam_policy
to
control access instead.
sourcepub async fn read(
&self,
bucket: &str,
object: &str,
entity: &Entity
) -> Result<ObjectAccessControl>
pub async fn read(
&self,
bucket: &str,
object: &str,
entity: &Entity
) -> Result<ObjectAccessControl>
Returns the ACL
entry for the specified entity on the specified bucket.
Important
Important: This method fails with a 400 Bad Request response for buckets with uniform
bucket-level access enabled. Use Bucket::get_iam_policy
and Bucket::set_iam_policy
to
control access instead.
sourcepub async fn update(
&self,
object_access_control: &ObjectAccessControl
) -> Result<ObjectAccessControl>
pub async fn update(
&self,
object_access_control: &ObjectAccessControl
) -> Result<ObjectAccessControl>
Updates an ACL entry on the specified object.
Important
Important: This method fails with a 400 Bad Request response for buckets with uniform
bucket-level access enabled. Use Bucket::get_iam_policy
and Bucket::set_iam_policy
to
control access instead.
sourcepub async fn delete(
&self,
object_access_control: ObjectAccessControl
) -> Result<()>
pub async fn delete(
&self,
object_access_control: ObjectAccessControl
) -> Result<()>
Permanently deletes the ACL entry for the specified entity on the specified object.
Important
Important: This method fails with a 400 Bad Request response for buckets with uniform
bucket-level access enabled. Use Bucket::get_iam_policy
and Bucket::set_iam_policy
to
control access instead.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ObjectAccessControlClient<'a>
impl<'a> Send for ObjectAccessControlClient<'a>
impl<'a> Sync for ObjectAccessControlClient<'a>
impl<'a> Unpin for ObjectAccessControlClient<'a>
impl<'a> !UnwindSafe for ObjectAccessControlClient<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more