pub struct SupabaseAuth { /* private fields */ }Expand description
Supabase service auth used by REST-backed store adapters.
Implementations§
Source§impl SupabaseAuth
impl SupabaseAuth
Sourcepub fn service_role(secret: impl Into<String>) -> Self
pub fn service_role(secret: impl Into<String>) -> Self
Creates Supabase REST auth using the same secret for apikey and bearer auth.
Sourcepub fn new(api_key: impl Into<String>, bearer_token: impl Into<String>) -> Self
pub fn new(api_key: impl Into<String>, bearer_token: impl Into<String>) -> Self
Creates Supabase REST auth from explicit header values.
Sourcepub fn bearer_token(&self) -> &str
pub fn bearer_token(&self) -> &str
Returns the bearer token header value.
Trait Implementations§
Source§impl Clone for SupabaseAuth
impl Clone for SupabaseAuth
Source§fn clone(&self) -> SupabaseAuth
fn clone(&self) -> SupabaseAuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SupabaseAuth
impl Debug for SupabaseAuth
impl Eq for SupabaseAuth
Source§impl PartialEq for SupabaseAuth
impl PartialEq for SupabaseAuth
Source§fn eq(&self, other: &SupabaseAuth) -> bool
fn eq(&self, other: &SupabaseAuth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SupabaseAuth
Auto Trait Implementations§
impl Freeze for SupabaseAuth
impl RefUnwindSafe for SupabaseAuth
impl Send for SupabaseAuth
impl Sync for SupabaseAuth
impl Unpin for SupabaseAuth
impl UnsafeUnpin for SupabaseAuth
impl UnwindSafe for SupabaseAuth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more