[][src]Struct tame_gcs::objects::Object

pub struct Object;

Methods

impl Object[src]

pub fn delete<'a, OID: ?Sized>(
    id: &OID,
    optional: Option<DeleteObjectOptional>
) -> Result<Request<Empty>, Error> where
    OID: ObjectIdentifier<'a>, 
[src]

Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.

Required IAM Permissions: storage.objects.delete

Complete API documentation

impl Object[src]

pub fn download<'a, OID: ?Sized>(
    id: &OID,
    optional: Option<DownloadObjectOptional>
) -> Result<Request<Empty>, Error> where
    OID: ObjectIdentifier<'a>, 
[src]

Downloads an object

Required IAM Permissions: storage.objects.get, storage.objects.getIamPolicy*

Complete API Documentation

impl Object[src]

pub fn get<'a, OID: ?Sized>(
    id: &OID,
    optional: Option<GetObjectOptional>
) -> Result<Request<Empty>, Error> where
    OID: ObjectIdentifier<'a>, 
[src]

Gets an object's metadata

Required IAM Permissions: storage.objects.get, storage.objects.getIamPolicy*

Complete API Documentation

impl Object[src]

pub fn insert_simple<'a, OID: ?Sized, B>(
    id: &OID,
    content: B,
    length: u64,
    optional: Option<InsertObjectOptional>
) -> Result<Request<B>, Error> where
    OID: ObjectIdentifier<'a>, 
[src]

Stores a new object and metadata.

  • Maximum file size: 5TB
  • Accepted Media MIME types: */*

Required IAM Permissions: storage.objects.create, storage.objects.delete

Note: storage.objects.delete is only needed if an object with the same name already exists.

Complete API Documentation

impl Object[src]

pub fn list(
    bucket: &BucketName,
    optional: Option<ListOptional>
) -> Result<Request<Empty>, Error>
[src]

Retrieves a list of objects matching the criteria.

Required IAM Permissions: storage.objects.list, storage.objects.getIamPolicy*

Complete API Documentation

Auto Trait Implementations

impl Sync for Object

impl Send for Object

impl Unpin for Object

impl RefUnwindSafe for Object

impl UnwindSafe for Object

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]