pub struct SupabaseClient {
pub url: String,
pub api_key: String,
pub access_token: Option<String>,
}
Fields§
§url: String
§api_key: String
§access_token: Option<String>
Implementations§
Source§impl SupabaseClient
impl SupabaseClient
Source§impl SupabaseClient
impl SupabaseClient
pub async fn sign_up( &self, sign_up_request: SignUpRequest, ) -> Result<AuthResponse, AuthErrorResponse>
pub async fn sign_in( &self, email: &str, password: &str, ) -> Result<AuthResponse, Error>
pub async fn get_user(&self, access_token: &str) -> Result<Value, Error>
pub async fn delete_user(&self, user_id: &str) -> Result<(), String>
Trait Implementations§
Source§impl Clone for SupabaseClient
impl Clone for SupabaseClient
Source§fn clone(&self) -> SupabaseClient
fn clone(&self) -> SupabaseClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SupabaseClient
impl RefUnwindSafe for SupabaseClient
impl Send for SupabaseClient
impl Sync for SupabaseClient
impl Unpin for SupabaseClient
impl UnwindSafe for SupabaseClient
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