pub struct SupabaseBucketPlan {
pub region: RegionTrue,
pub url: String,
pub access_key_id: String,
pub secret_access_key: String,
pub name: String,
pub path: Option<String>,
}
Fields§
§region: RegionTrue
This is the S3 Region. It should look like us-east-1 It should be one of the supabase regions defined in the SUPABASE_REGION enum Check https://supabase.com/docs/guides/platform/regions for up to date regions
url: String
This is the S3 compatible URL for Supabase S3 This should look like https://
access_key_id: String
This is the Supabase S3 Access Key ID. The user creates this in the Supabase project Storage settings
secret_access_key: String
This is the Supabase S3 Secret Access Key. The user creates this in the Supabase project Storage settings along with the access key id
name: String
This is the Supabase S3 Bucket Name. The user must create this in Supabase under Storage > Buckets A bucket that does not exist will not be checked now, but file uploads will fail
path: Option<String>
This is the Supabase S3 Bucket Folder Path. The user can create this in Supabase under Storage > Buckets A path that does not exist will not be checked now, but file uploads will fail A Path is like a folder in the bucket Eg. If the bucket is called "my-bucket" and the path is "my-folder", the full path is "my-bucket/my-folder"
Implementations§
Source§impl SupabaseBucketPlan
impl SupabaseBucketPlan
pub fn new( region: RegionTrue, url: String, access_key_id: String, secret_access_key: String, name: String, ) -> SupabaseBucketPlan
Trait Implementations§
Source§impl Clone for SupabaseBucketPlan
impl Clone for SupabaseBucketPlan
Source§fn clone(&self) -> SupabaseBucketPlan
fn clone(&self) -> SupabaseBucketPlan
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more