[−][src]Struct tame_gcs::objects::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]
id: &OID,
optional: Option<DeleteObjectOptional>
) -> Result<Request<Empty>, Error> where
OID: ObjectIdentifier<'a>,
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
impl Object
[src]
pub fn download<'a, OID: ?Sized>(
id: &OID,
optional: Option<DownloadObjectOptional>
) -> Result<Request<Empty>, Error> where
OID: ObjectIdentifier<'a>,
[src]
id: &OID,
optional: Option<DownloadObjectOptional>
) -> Result<Request<Empty>, Error> where
OID: ObjectIdentifier<'a>,
Downloads an object
Required IAM Permissions: storage.objects.get
, storage.objects.getIamPolicy
*
impl Object
[src]
pub fn get<'a, OID: ?Sized>(
id: &OID,
optional: Option<GetObjectOptional>
) -> Result<Request<Empty>, Error> where
OID: ObjectIdentifier<'a>,
[src]
id: &OID,
optional: Option<GetObjectOptional>
) -> Result<Request<Empty>, Error> where
OID: ObjectIdentifier<'a>,
Gets an object's metadata
Required IAM Permissions: storage.objects.get
, storage.objects.getIamPolicy
*
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]
id: &OID,
content: B,
length: u64,
optional: Option<InsertObjectOptional>
) -> Result<Request<B>, Error> where
OID: ObjectIdentifier<'a>,
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.
impl Object
[src]
pub fn list(
bucket: &BucketName,
optional: Option<ListOptional>
) -> Result<Request<Empty>, Error>
[src]
bucket: &BucketName,
optional: Option<ListOptional>
) -> Result<Request<Empty>, Error>
Retrieves a list of objects matching the criteria.
Required IAM Permissions: storage.objects.list
, storage.objects.getIamPolicy
*
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,