Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThouCheese/cloud-storage-rs
/ functions
Functions
297 in github.com/ThouCheese/cloud-storage-rs
⨍
Functions
297
◇
Types & classes
110
Method
compose
( bucket: &str, req: &ComposeRequest, destination_object: &str, )
src/resources/object.rs:545
Method
compose
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
Method
compose_sync
( bucket: &str, req: &ComposeRequest, destination_object: &str, )
src/resources/object.rs:561
Function
copy
()
src/resources/object.rs:1188
Method
copy
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
Method
copy
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
Method
create
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
Method
create
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
Method
create
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
Method
create
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
Method
create
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
Method
create
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
Method
create
( bucket: &str, new_bucket_access_control: &NewBucketAccessControl, )
src/resources/bucket_access_control.rs:114
Method
create
( bucket: &str, new_acl: &NewDefaultObjectAccessControl, )
src/resources/default_object_access_control.rs:101
Method
create
Creates a notification subscription for a given bucket.
src/resources/notification.rs:69
Method
create
(new_bucket: &NewBucket)
src/resources/bucket.rs:564
Method
create
( bucket: &str, object: &str, new_object_access_control: &NewObjectAccessControl,
src/resources/object_access_control.rs:113
Method
create
()
src/resources/hmac_key.rs:99
Method
create
( bucket: &str, file: Vec<u8>, filename: &str, mime_type: &str, )
src/resources/object.rs:256
Method
create
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
Method
create
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
Method
create
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
Method
create
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
Method
create
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
Method
create
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
Method
create_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
Method
create_streamed
( bucket: &str, stream: S, length: impl Into<Option<u64>>, filename: &str,
src/resources/object.rs:300
Method
create_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
Method
create_streamed_sync
( bucket: &str, mut file: R, length: impl Into<Option<u64>>, filename: &str,
src/resources/object.rs:323
Method
create_sync
( bucket: &str, new_bucket_access_control: &NewBucketAccessControl, )
src/resources/bucket_access_control.rs:129
Method
create_sync
( bucket: &str, new_acl: &NewDefaultObjectAccessControl, )
src/resources/default_object_access_control.rs:116
Method
create_sync
(new_bucket: &NewBucket)
src/resources/bucket.rs:573
Method
create_sync
( bucket: &str, object: &str, new_object_access_control: &NewObjectAccessControl,
src/resources/object_access_control.rs:129
Method
create_sync
()
src/resources/hmac_key.rs:108
Method
create_sync
( bucket: &str, file: Vec<u8>, filename: &str, mime_type: &str, )
src/resources/object.rs:273
Method
default
()
src/client.rs:38
Method
default
()
src/token.rs:73
Method
default
()
src/resources/location.rs:14
Method
default_object_access_control
Operations on [`DefaultObjectAccessControl`](crate::default_object_access_control::DefaultObjectAccessControl)s.
src/client.rs:78
Function
delete
()
src/resources/bucket_access_control.rs:320
Function
delete
()
src/resources/default_object_access_control.rs:306
Function
delete
()
src/resources/notification.rs:166
Function
delete
()
src/resources/bucket.rs:880
Method
delete
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
Method
delete
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
Method
delete
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
Method
delete
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
Method
delete
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
Method
delete
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
Method
delete
Permanently deletes a notification subscription.
src/resources/notification.rs:117
Method
delete
(access_id: &str)
src/resources/hmac_key.rs:230
Method
delete
(bucket: &str, file_name: &str)
src/resources/object.rs:501
Method
delete
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
Method
delete
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
Method
delete
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
Method
delete
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
Method
delete
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
Method
delete
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
Function
delete_nonexistent
()
src/resources/object.rs:1140
Method
delete_sync
(access_id: &str)
src/resources/hmac_key.rs:236
Method
delete_sync
(bucket: &str, file_name: &str)
src/resources/object.rs:510
Method
deserialize
(deserializer: D)
src/resources/common.rs:153
Method
deserialize
(deserializer: D)
src/resources/topic.rs:62
Method
download
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
Method
download
(bucket: &str, file_name: &str)
src/resources/object.rs:416
Method
download
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
Method
download_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
Method
download_streamed
( bucket: &str, file_name: &str, )
src/resources/object.rs:452
Function
download_streamed_large
()
src/resources/object.rs:1096
Method
download_sync
(bucket: &str, file_name: &str)
src/resources/object.rs:428
Method
errors_has_reason
Check whether errors contain given reason
src/error.rs:164
Method
expecting
(&self, f: &mut std::fmt::Formatter)
src/resources/common.rs:122
Method
expecting
(&self, f: &mut std::fmt::Formatter)
src/resources/topic.rs:34
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/error.rs:35
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/client.rs:29
Method
fmt
(&self, f: &mut Formatter<'_>)
src/token.rs:67
Method
fmt
(&self, f: &mut std::fmt::Formatter)
src/resources/common.rs:27
Method
fmt
(&self, f: &mut std::fmt::Formatter)
src/resources/topic.rs:11
Method
from
(err: reqwest::Error)
src/error.rs:61
Method
from_str
(s: &str)
src/resources/common.rs:39
Function
from_str_opt
(deserializer: D)
src/lib.rs:147
Method
get
Returns a valid, unexpired token. If the contained token is expired, it updates and returns the token.
src/token.rs:18
Method
get_canonical_query_string
( date: &chrono::DateTime<chrono::Utc>, exp: u32, headers: &str, content_dispo
src/resources/object.rs:857
Method
get_credential_scope
(date: &chrono::DateTime<chrono::Utc>)
src/resources/object.rs:898
Function
get_iam_policy
()
src/resources/bucket.rs:887
Method
get_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
Method
get_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
Method
hmac_key
Operations on [`HmacKey`](crate::hmac_key::HmacKey)s.
src/client.rs:83
Function
list
()
src/resources/notification.rs:160
Method
list
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
Method
list
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
Method
list
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
Method
list
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
Method
list
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
Method
list
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
Method
list
(bucket: &str)
src/resources/bucket_access_control.rs:153
Method
list
(bucket: &str)
src/resources/default_object_access_control.rs:139
Method
list
Retrieves a list of notification subscriptions for a given bucket.}
src/resources/notification.rs:103
Method
list
()
src/resources/bucket.rs:593
Method
list
(bucket: &str, object: &str)
src/resources/object_access_control.rs:144
← previous
next →
101–200 of 297, ranked by callers