pub trait SupabaseClientStorageExt {
// Required method
fn storage(&self) -> Result<StorageClient, StorageError>;
}Expand description
Extension trait to create a StorageClient from a SupabaseClient.
§Example
ⓘ
use supabase_client_sdk::prelude::*;
use supabase_client_storage::SupabaseClientStorageExt;
let client = SupabaseClient::new(config).await?;
let storage = client.storage()?;
let buckets = storage.list_buckets().await?;Required Methods§
Sourcefn storage(&self) -> Result<StorageClient, StorageError>
fn storage(&self) -> Result<StorageClient, StorageError>
Create a StorageClient from the client’s configuration.
Requires supabase_url and supabase_key to be set in the config.