MCPcopy Create free account

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

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

Methodlist
()
src/resources/hmac_key.rs:132
Methodlist
( bucket: &str, list_request: ListRequest, )
src/resources/object.rs:356
Methodlist
Returns all `BucketAccessControl`s related to this bucket. ### Important Important: This method fails with a 400 Bad Request response for buckets wit
src/sync/bucket_access_control.rs:61
Methodlist
Retrieves default object ACL entries on the specified bucket. ### Important Important: This method fails with a `400 Bad Request` response for buckets
src/sync/default_object_access_control.rs:63
Methodlist
Returns all `Bucket`s within this project. ### Note When using incorrect permissions, this function fails silently and returns an empty list. ### Ex
src/sync/bucket.rs:55
Methodlist
Retrieves `ACL` entries on the specified object. ### Important Important: This method fails with a 400 Bad Request response for buckets with uniform
src/sync/object_access_control.rs:38
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/sync/hmac_key.rs:53
Methodlist
Obtain a list of objects within this Bucket. ### Example ```no_run # fn main() -> Result<(), Box<dyn std::error::Error>> { use cloud_storage::sync::Cl
src/sync/object.rs:78
Functionlist_prefix
()
src/resources/object.rs:1029
Functionlist_prefix_delimiter
()
src/resources/object.rs:1363
Methodlist_sync
(bucket: &str)
src/resources/bucket_access_control.rs:165
Methodlist_sync
(bucket: &str)
src/resources/default_object_access_control.rs:151
Methodlist_sync
()
src/resources/bucket.rs:602
Methodlist_sync
(bucket: &str, object: &str)
src/resources/object_access_control.rs:156
Methodlist_sync
()
src/resources/hmac_key.rs:141
Methodlist_sync
(bucket: &str, list_request: ListRequest)
src/resources/object.rs:371
Methodnew
(msg: &str)
src/error.rs:29
Methodnew
Create a new instance of `DownloadOptions`. Equivalent to `DownloadOptions::default()`. ### Example ```rust use cloud_storage::DownloadOptions; let
src/download_options.rs:16
Methodnew
Constructs a client with the default token provider, where it attemps to obtain the credentials from the following locations: 1. Checks for the envir
src/sync.rs:35
Methodnew
Constructs a client with the default token provider, where it attemps to obtain the credentials from the following locations: 1. Checks for the envir
src/client.rs:55
Methodnew
(scope: &str)
src/token.rs:79
Methodnew
(bytes: S, size: Option<u64>)
src/resources/object.rs:1543
Methodnew
(r: R)
src/sync/helpers/reader_stream.rs:13
Methodobject
Operations on [`Object`](crate::object::Object)s.
src/client.rs:88
Methodobject_access_control
Operations on [`ObjectAccessControl`](crate::object_access_control::ObjectAccessControl)s.
src/client.rs:93
Functionpercent_encode
(input: &str)
src/resources/object.rs:968
Functionpercent_encode_noslash
We need to be able to percent encode stuff, but without touching the slashes in filenames. To this end we create an implementation that does this, wit
src/resources/object.rs:964
Methodpoll_next
( mut self: std::pin::Pin<&mut Self>, cx: &mut std::task::Context, )
src/resources/object.rs:1551
Methodpoll_next
(self: Pin<&mut Self>, _: &mut Context<'_>)
src/sync/helpers/reader_stream.rs:21
Functionread
()
src/resources/notification.rs:154
Methodread
Returns the ACL entry for the specified entity on the specified bucket. ### Important Important: This method fails with a 400 Bad Request response fo
src/client/bucket_access_control.rs:111
Methodread
Read a single `DefaultObjectAccessControl`. The `bucket` argument is the name of the bucket whose `DefaultObjectAccessControl` is to be read, and the
src/client/default_object_access_control.rs:133
Methodread
Returns a single `Bucket` by its name. If the Bucket does not exist, an error is returned. ### Example ``` # #[tokio::main] # async fn main() -> Resul
src/client/bucket.rs:116
Methodread
Returns the `ACL` entry for the specified entity on the specified bucket. ### Important Important: This method fails with a 400 Bad Request response
src/client/object_access_control.rs:86
Methodread
Retrieves an HMAC key's metadata. Since the HmacKey is secret, this does not return a `HmacKey`, but a `HmacMeta`. This is a redacted version of a `Hm
src/client/hmac_key.rs:131
Methodread
Obtains 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:243
Methodread
(bucket: &str, entity: &Entity)
src/resources/bucket_access_control.rs:186
Methodread
(bucket: &str, entity: &Entity)
src/resources/default_object_access_control.rs:175
Methodread
View a notification configuration.
src/resources/notification.rs:84
Methodread
(name: &str)
src/resources/bucket.rs:625
Methodread
(bucket: &str, object: &str, entity: &Entity)
src/resources/object_access_control.rs:167
Methodread
(access_id: &str)
src/resources/hmac_key.rs:164
Methodread
(bucket: &str, file_name: &str)
src/resources/object.rs:391
Methodread
Returns the ACL entry for the specified entity on the specified bucket. ### Important Important: This method fails with a 400 Bad Request response fo
src/sync/bucket_access_control.rs:84
Methodread
Read a single `DefaultObjectAccessControl`. The `bucket` argument is the name of the bucket whose `DefaultObjectAccessControl` is to be read, and the
src/sync/default_object_access_control.rs:89
Methodread
Returns the `ACL` entry for the specified entity on the specified bucket. ### Important Important: This method fails with a 400 Bad Request response
src/sync/object_access_control.rs:50
Methodread
Retrieves an HMAC key's metadata. Since the HmacKey is secret, this does not return a `HmacKey`, but a `HmacMeta`. This is a redacted version of a `Hm
src/sync/hmac_key.rs:76
Methodread
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:100
Methodread_sync
(bucket: &str, entity: &Entity)
src/resources/bucket_access_control.rs:198
Methodread_sync
(bucket: &str, entity: &Entity)
src/resources/default_object_access_control.rs:187
Methodread_sync
(name: &str)
src/resources/bucket.rs:634
Methodread_sync
(bucket: &str, object: &str, entity: &Entity)
src/resources/object_access_control.rs:179
Methodread_sync
(access_id: &str)
src/resources/hmac_key.rs:173
Methodread_sync
(bucket: &str, file_name: &str)
src/resources/object.rs:400
Functionrewrite
()
src/resources/object.rs:1196
Methodrewrite
Moves a file from the current location to the target bucket and path. ## Limitations This function does not yet support rewriting objects to another
src/client/object.rs:555
Methodrewrite
Moves a file from the current location to the target bucket and path. ## Limitations This function does not yet support rewriting objects to another
src/sync/object.rs:256
Functionserialize
()
src/resources/common.rs:166
Methodserialize
(&self, serializer: S)
src/resources/common.rs:109
Methodserialize
(&self, serializer: S)
src/resources/topic.rs:21
Functionset_iam_policy
()
src/resources/bucket.rs:895
Methodset_iam_policy
Updates 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:291
Methodset_iam_policy
Updates 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:204
Methodsize_hint
(&self)
src/resources/object.rs:1558
Methodsource
(&self)
src/error.rs:41
Methodstop
(&self)
src/resources/channel.rs:16
Methodstop_sync
(&self)
src/resources/channel.rs:12
Functiontest_download_url_with
()
src/resources/object.rs:1230
Functiontest_iam_permission
()
src/resources/bucket.rs:912
Methodtest_iam_permission
Checks whether the user provided in the service account has this permission. ### Example ```no_run # #[tokio::main] # async fn main() -> Result<(), Bo
src/client/bucket.rs:327
Methodtest_iam_permission
Checks whether the user provided in the service account has this permission. ### Example ```no_run # fn main() -> Result<(), Box<dyn std::error::Error
src/sync/bucket.rs:223
Functiontest_upload_url
()
src/resources/object.rs:1243
Functiontest_upload_url_with
()
src/resources/object.rs:1263
Functiontest_url_encoding
()
src/resources/object.rs:1208
Functionupdate
()
src/resources/bucket_access_control.rs:304
Functionupdate
()
src/resources/default_object_access_control.rs:293
Functionupdate
()
src/resources/bucket.rs:864
Functionupdate
()
src/resources/object_access_control.rs:307
Functionupdate
()
src/resources/object.rs:1118
Methodupdate
Update this `BucketAccessControl`. ### Important Important: This method fails with a 400 Bad Request response for buckets with uniform bucket-level a
src/client/bucket_access_control.rs:153
Methodupdate
Update the current `DefaultObjectAccessControl`. ### Important Important: This method fails with a `400 Bad Request` response for buckets with uniform
src/client/default_object_access_control.rs:181
Methodupdate
Update an existing `Bucket`. If you declare you bucket as mutable, you can edit its fields. You can then flush your changes to Google Cloud Storage us
src/client/bucket.rs:161
Methodupdate
Updates an ACL entry on the specified object. ### Important Important: This method fails with a 400 Bad Request response for buckets with uniform buc
src/client/object_access_control.rs:120
Methodupdate
Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states. Since the HmacKey is secret, this does not return a `HmacKey`
src/client/hmac_key.rs:173
Methodupdate
Updates a single object with the specified name in the specified bucket with the new information in `object`. Note that if the `name` or `bucket` fie
src/client/object.rs:368
Methodupdate
(access_id: &str, state: HmacState)
src/resources/hmac_key.rs:196
Methodupdate
Update this `BucketAccessControl`. ### Important Important: This method fails with a 400 Bad Request response for buckets with uniform bucket-level a
src/sync/bucket_access_control.rs:109
Methodupdate
Update the current `DefaultObjectAccessControl`. ### Important Important: This method fails with a `400 Bad Request` response for buckets with uniform
src/sync/default_object_access_control.rs:116
Methodupdate
Update an existing `Bucket`. If you declare you bucket as mutable, you can edit its fields. You can then flush your changes to Google Cloud Storage us
src/sync/bucket.rs:110
Methodupdate
Updates an ACL entry on the specified object. ### Important Important: This method fails with a 400 Bad Request response for buckets with uniform buc
src/sync/object_access_control.rs:70
Methodupdate
Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states. Since the HmacKey is secret, this does not return a `HmacKey`
src/sync/hmac_key.rs:101
Methodupdate
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:138
Methodupdate_sync
(access_id: &str, state: HmacState)
src/resources/hmac_key.rs:208
Methodvisit_str
(self, value: &str)
src/resources/common.rs:126
Methodvisit_str
(self, value: &str)
src/resources/topic.rs:38
Methodwith_cache
Initializer with a provided refreshable token
src/sync.rs:43
Methodwith_cache
Initializer with a provided refreshable token
src/client.rs:60
← previous201–297 of 297, ranked by callers