Skip to main content

SupabaseClientStorageExt

Trait SupabaseClientStorageExt 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl SupabaseClientStorageExt for SupabaseClient

Implementors§