pub fn exists(bucket: &Bucket, key: &str) -> Result<bool, Error>
Expand description
Check if the key exists in the bucket.
If the key exists in the bucket, it returns Ok(true)
. If the key does
not exist in the bucket, it returns Ok(false)
.
If any other error occurs, it returns an Err(error)
.