MCPcopy Create free account

hub / github.com/ThouCheese/cloud-storage-rs / functions

Functions297 in github.com/ThouCheese/cloud-storage-rs

Methodcompose
( bucket: &str, req: &ComposeRequest, destination_object: &str, )
src/resources/object.rs:545
Methodcompose
Obtains a single object with the specified name in the specified bucket. ### Example ```no_run # fn main() -> Result<(), Box<dyn std::error::Error>> {
src/sync/object.rs:193
Methodcompose_sync
( bucket: &str, req: &ComposeRequest, destination_object: &str, )
src/resources/object.rs:561
Functioncopy
()
src/resources/object.rs:1188
Methodcopy
Copy this object to the target bucket and path. ### Example ```no_run # #[tokio::main] # async fn main() -> Result<(), Box<dyn std::error::Error>> { u
src/client/object.rs:500
Methodcopy
Copy this object to the target bucket and path ### Example ```no_run # fn main() -> Result<(), Box<dyn std::error::Error>> { use cloud_storage::sync::
src/sync/object.rs:221
Methodcreate
Create a new `BucketAccessControl` using the provided `NewBucketAccessControl`, related to the `Bucket` provided by the `bucket_name` argument. ### I
src/client/bucket_access_control.rs:36
Methodcreate
Create a new `DefaultObjectAccessControl` entry on the specified bucket. ### Important Important: This method fails with a `400 Bad Request` response
src/client/default_object_access_control.rs:38
Methodcreate
Creates a new `Bucket`. There are many options that you can provide for creating a new bucket, so the `NewBucket` resource contains all of them. Note
src/client/bucket.rs:37
Methodcreate
Creates a new ACL entry on the specified `object`. ### Important This method fails with a 400 Bad Request response for buckets with uniform bucket-le
src/client/object_access_control.rs:20
Methodcreate
Creates a new HMAC key for the specified service account. The authenticated user must have `storage.hmacKeys.create` permission for the project in wh
src/client/hmac_key.rs:33
Methodcreate
Create a new object. Upload a file as that is loaded in memory to google cloud storage, where it will be interpreted according to the mime type you sp
src/client/object.rs:35
Methodcreate
( bucket: &str, new_bucket_access_control: &NewBucketAccessControl, )
src/resources/bucket_access_control.rs:114
Methodcreate
( bucket: &str, new_acl: &NewDefaultObjectAccessControl, )
src/resources/default_object_access_control.rs:101
Methodcreate
Creates a notification subscription for a given bucket.
src/resources/notification.rs:69
Methodcreate
(new_bucket: &NewBucket)
src/resources/bucket.rs:564
Methodcreate
( bucket: &str, object: &str, new_object_access_control: &NewObjectAccessControl,
src/resources/object_access_control.rs:113
Methodcreate
()
src/resources/hmac_key.rs:99
Methodcreate
( bucket: &str, file: Vec<u8>, filename: &str, mime_type: &str, )
src/resources/object.rs:256
Methodcreate
Create a new `BucketAccessControl` using the provided `NewBucketAccessControl`, related to the `Bucket` provided by the `bucket_name` argument. ### I
src/sync/bucket_access_control.rs:31
Methodcreate
Create a new `DefaultObjectAccessControl` entry on the specified bucket. ### Important Important: This method fails with a `400 Bad Request` response
src/sync/default_object_access_control.rs:34
Methodcreate
Creates a new `Bucket`. There are many options that you can provide for creating a new bucket, so the `NewBucket` resource contains all of them. Note
src/sync/bucket.rs:33
Methodcreate
Creates a new ACL entry on the specified `object`. ### Important This method fails with a 400 Bad Request response for buckets with uniform bucket-le
src/sync/object_access_control.rs:17
Methodcreate
Creates a new HMAC key for the specified service account. The authenticated user must have `storage.hmacKeys.create` permission for the project in wh
src/sync/hmac_key.rs:29
Methodcreate
Create a new object. Upload a file as that is loaded in memory to google cloud storage, where it will be interpreted according to the mime type you sp
src/sync/object.rs:28
Methodcreate_streamed
Create a new object. This works in the same way as `ObjectClient::create`, except it does not need to load the entire file in ram. ## Example ```rust,
src/client/object.rs:87
Methodcreate_streamed
( bucket: &str, stream: S, length: impl Into<Option<u64>>, filename: &str,
src/resources/object.rs:300
Methodcreate_streamed
Create a new object. This works in the same way as `ObjectClient::create`, except it does not need to load the entire file in ram.
src/sync/object.rs:45
Methodcreate_streamed_sync
( bucket: &str, mut file: R, length: impl Into<Option<u64>>, filename: &str,
src/resources/object.rs:323
Methodcreate_sync
( bucket: &str, new_bucket_access_control: &NewBucketAccessControl, )
src/resources/bucket_access_control.rs:129
Methodcreate_sync
( bucket: &str, new_acl: &NewDefaultObjectAccessControl, )
src/resources/default_object_access_control.rs:116
Methodcreate_sync
(new_bucket: &NewBucket)
src/resources/bucket.rs:573
Methodcreate_sync
( bucket: &str, object: &str, new_object_access_control: &NewObjectAccessControl,
src/resources/object_access_control.rs:129
Methodcreate_sync
()
src/resources/hmac_key.rs:108
Methodcreate_sync
( bucket: &str, file: Vec<u8>, filename: &str, mime_type: &str, )
src/resources/object.rs:273
Methoddefault
()
src/client.rs:38
Methoddefault
()
src/token.rs:73
Methoddefault
()
src/resources/location.rs:14
Methoddefault_object_access_control
Operations on [`DefaultObjectAccessControl`](crate::default_object_access_control::DefaultObjectAccessControl)s.
src/client.rs:78
Functiondelete
()
src/resources/bucket_access_control.rs:320
Functiondelete
()
src/resources/default_object_access_control.rs:306
Functiondelete
()
src/resources/notification.rs:166
Functiondelete
()
src/resources/bucket.rs:880
Methoddelete
Permanently deletes the ACL entry for the specified entity on the specified bucket. ### Important Important: This method fails with a 400 Bad Request
src/client/bucket_access_control.rs:198
Methoddelete
Delete this 'DefaultObjectAccessControl`. ### Important Important: This method fails with a `400 Bad Request` response for buckets with uniform bucket
src/client/default_object_access_control.rs:228
Methoddelete
Delete an existing `Bucket`. This permanently removes a bucket from Google Cloud Storage. An error is returned when you don't have sufficient permissi
src/client/bucket.rs:202
Methoddelete
Permanently deletes the ACL entry for the specified entity on the specified object. ### Important Important: This method fails with a 400 Bad Request
src/client/object_access_control.rs:153
Methoddelete
Deletes an HMAC key. Note that a key must be set to `Inactive` first. The authenticated user must have storage.hmacKeys.delete permission for the pro
src/client/hmac_key.rs:216
Methoddelete
Deletes a single object with the specified name in the specified bucket. ### Example ```no_run # #[tokio::main] # async fn main() -> Result<(), Box<dy
src/client/object.rs:404
Methoddelete
Permanently deletes a notification subscription.
src/resources/notification.rs:117
Methoddelete
(access_id: &str)
src/resources/hmac_key.rs:230
Methoddelete
(bucket: &str, file_name: &str)
src/resources/object.rs:501
Methoddelete
Permanently deletes the ACL entry for the specified entity on the specified bucket. ### Important Important: This method fails with a 400 Bad Request
src/sync/bucket_access_control.rs:139
Methoddelete
Delete this 'DefaultObjectAccessControl`. ### Important Important: This method fails with a `400 Bad Request` response for buckets with uniform bucket
src/sync/default_object_access_control.rs:145
Methoddelete
Delete an existing `Bucket`. This permanently removes a bucket from Google Cloud Storage. An error is returned when you don't have sufficient permissi
src/sync/bucket.rs:138
Methoddelete
Permanently deletes the ACL entry for the specified entity on the specified object. ### Important Important: This method fails with a 400 Bad Request
src/sync/object_access_control.rs:88
Methoddelete
Deletes an HMAC key. Note that a key must be set to `Inactive` first. The authenticated user must have storage.hmacKeys.delete permission for the pro
src/sync/hmac_key.rs:125
Methoddelete
Deletes a single object with the specified name in the specified bucket. ### Example ```no_run # fn main() -> Result<(), Box<dyn std::error::Error>> {
src/sync/object.rs:156
Functiondelete_nonexistent
()
src/resources/object.rs:1140
Methoddelete_sync
(access_id: &str)
src/resources/hmac_key.rs:236
Methoddelete_sync
(bucket: &str, file_name: &str)
src/resources/object.rs:510
Methoddeserialize
(deserializer: D)
src/resources/common.rs:153
Methoddeserialize
(deserializer: D)
src/resources/topic.rs:62
Methoddownload
Download the content of the object with the specified name in the specified bucket. ### Example ```no_run # #[tokio::main] # async fn main() -> Result
src/client/object.rs:278
Methoddownload
(bucket: &str, file_name: &str)
src/resources/object.rs:416
Methoddownload
Download the content of the object with the specified name in the specified bucket. ### Example ```no_run # fn main() -> Result<(), Box<dyn std::error
src/sync/object.rs:118
Methoddownload_streamed
Download the content of the object with the specified name in the specified bucket, without allocating the whole file into a vector. ### Example ```no
src/client/object.rs:321
Methoddownload_streamed
( bucket: &str, file_name: &str, )
src/resources/object.rs:452
Functiondownload_streamed_large
()
src/resources/object.rs:1096
Methoddownload_sync
(bucket: &str, file_name: &str)
src/resources/object.rs:428
Methoderrors_has_reason
Check whether errors contain given reason
src/error.rs:164
Methodexpecting
(&self, f: &mut std::fmt::Formatter)
src/resources/common.rs:122
Methodexpecting
(&self, f: &mut std::fmt::Formatter)
src/resources/topic.rs:34
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/error.rs:35
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/client.rs:29
Methodfmt
(&self, f: &mut Formatter<'_>)
src/token.rs:67
Methodfmt
(&self, f: &mut std::fmt::Formatter)
src/resources/common.rs:27
Methodfmt
(&self, f: &mut std::fmt::Formatter)
src/resources/topic.rs:11
Methodfrom
(err: reqwest::Error)
src/error.rs:61
Methodfrom_str
(s: &str)
src/resources/common.rs:39
Functionfrom_str_opt
(deserializer: D)
src/lib.rs:147
Methodget
Returns a valid, unexpired token. If the contained token is expired, it updates and returns the token.
src/token.rs:18
Methodget_canonical_query_string
( date: &chrono::DateTime<chrono::Utc>, exp: u32, headers: &str, content_dispo
src/resources/object.rs:857
Methodget_credential_scope
(date: &chrono::DateTime<chrono::Utc>)
src/resources/object.rs:898
Functionget_iam_policy
()
src/resources/bucket.rs:887
Methodget_iam_policy
Returns the [IAM Policy](https://cloud.google.com/iam/docs/) for this bucket. ### Example ``` # #[tokio::main] # async fn main() -> Result<(), Box<dyn
src/client/bucket.rs:240
Methodget_iam_policy
Returns the [IAM Policy](https://cloud.google.com/iam/docs/) for this bucket. ### Example ``` # fn main() -> Result<(), Box<dyn std::error::Error>> {
src/sync/bucket.rs:165
Methodhmac_key
Operations on [`HmacKey`](crate::hmac_key::HmacKey)s.
src/client.rs:83
Functionlist
()
src/resources/notification.rs:160
Methodlist
Returns all `BucketAccessControl`s related to this bucket. ### Important Important: This method fails with a 400 Bad Request response for buckets wit
src/client/bucket_access_control.rs:76
Methodlist
Retrieves default object ACL entries on the specified bucket. ### Important Important: This method fails with a `400 Bad Request` response for buckets
src/client/default_object_access_control.rs:84
Methodlist
Returns all `Bucket`s within this project. ### Note When using incorrect permissions, this function fails silently and returns an empty list. ### Ex
src/client/bucket.rs:75
Methodlist
Retrieves `ACL` entries on the specified object. ### Important Important: This method fails with a 400 Bad Request response for buckets with uniform
src/client/object_access_control.rs:54
Methodlist
Retrieves a list of HMAC keys matching the criteria. Since the HmacKey is secret, this does not return a `HmacKey`, but a `HmacMeta`. This is a redact
src/client/hmac_key.rs:81
Methodlist
Obtain a list of objects within this Bucket. ### Example ```no_run # #[tokio::main] # async fn main() -> Result<(), Box<dyn std::error::Error>> { use
src/client/object.rs:143
Methodlist
(bucket: &str)
src/resources/bucket_access_control.rs:153
Methodlist
(bucket: &str)
src/resources/default_object_access_control.rs:139
Methodlist
Retrieves a list of notification subscriptions for a given bucket.}
src/resources/notification.rs:103
Methodlist
()
src/resources/bucket.rs:593
Methodlist
(bucket: &str, object: &str)
src/resources/object_access_control.rs:144
← previousnext →101–200 of 297, ranked by callers