Function golem_rust::bindings::wasi::keyvalue::eventual::exists

source ยท
pub fn exists(bucket: &Bucket, key: &Key) -> 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).