pub struct Builder {
pub url: String,
pub headers: Headers,
}Fields§
§url: String§headers: HeadersImplementations§
Source§impl Builder
impl Builder
pub fn new(url: impl Into<String>) -> Builder
Sourcepub fn insert_header(
&mut self,
header_name: impl ToString,
header_value: impl ToString,
) -> &mut Self
pub fn insert_header( &mut self, header_name: impl ToString, header_value: impl ToString, ) -> &mut Self
Add arbitrary headers to the request. For instance when you may want to connect through an API gateway that needs an API key header.
Sourcepub fn sign_up(
&self,
email_or_phone: EmailOrPhone,
password: impl AsRef<str>,
) -> Request
pub fn sign_up( &self, email_or_phone: EmailOrPhone, password: impl AsRef<str>, ) -> Request
Signs up for a new account
Sourcepub fn sign_in(
&self,
email_or_phone: EmailOrPhone,
password: impl AsRef<str>,
) -> Request
pub fn sign_in( &self, email_or_phone: EmailOrPhone, password: impl AsRef<str>, ) -> Request
Signs into an existing account
Sourcepub fn send_otp(
&self,
email_or_phone: EmailOrPhone,
should_create_user: bool,
) -> Request
pub fn send_otp( &self, email_or_phone: EmailOrPhone, should_create_user: bool, ) -> Request
Sends an OTP Code and creates user if it does not exist
pub fn verify_otp<T: Serialize>(&self, params: T) -> Request
Sourcepub fn reset_password_for_email(&self, email: impl AsRef<str>) -> Request
pub fn reset_password_for_email(&self, email: impl AsRef<str>) -> Request
Sends password recovery email
Sourcepub fn refresh_access_token(&self, refresh_token: impl AsRef<str>) -> Request
pub fn refresh_access_token(&self, refresh_token: impl AsRef<str>) -> Request
Refreshes the current session by refresh token
Sourcepub fn update_user(&self, user: UserAttributes, jwt: impl AsRef<str>) -> Request
pub fn update_user(&self, user: UserAttributes, jwt: impl AsRef<str>) -> Request
Updates a user
Sourcepub fn invite_user_by_email(&self, email: impl AsRef<str>) -> Request
pub fn invite_user_by_email(&self, email: impl AsRef<str>) -> Request
Invites a user via email
Sourcepub fn list_users(&self, query_string: Option<String>) -> Request
pub fn list_users(&self, query_string: Option<String>) -> Request
Lists all users based on a query string
Sourcepub fn get_user_by_id(&self, user_id: impl AsRef<str>) -> Request
pub fn get_user_by_id(&self, user_id: impl AsRef<str>) -> Request
Gets a user by id
Sourcepub fn create_user<T: Serialize>(&self, user: T) -> Request
pub fn create_user<T: Serialize>(&self, user: T) -> Request
Creates a user
Sourcepub fn update_user_by_id<T: Serialize>(
&self,
id: impl AsRef<str>,
user: T,
) -> Request
pub fn update_user_by_id<T: Serialize>( &self, id: impl AsRef<str>, user: T, ) -> Request
Updates a user by id
Sourcepub fn delete_user(&self, user_id: impl AsRef<str>) -> Request
pub fn delete_user(&self, user_id: impl AsRef<str>) -> Request
Deletes a user by id
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations§
Source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
Source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
Return the
T ShaderType for self. When used in AsBindGroup
derives, it is safe to assume that all images in self exist.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more