[−][src]Struct basket::Basket
Fields
api_key: Arc<String>
basket_url: Arc<Url>
client: Client
Implementations
impl Basket
[src]
impl Basket
[src]
pub async fn subscribe<'_>(
&'_ self,
email: impl Into<String>,
newsletters: Vec<String>,
opts: Option<SubscribeOpts>
) -> Result<(), Error>
[src]
&'_ self,
email: impl Into<String>,
newsletters: Vec<String>,
opts: Option<SubscribeOpts>
) -> Result<(), Error>
pub async fn subscribe_private<'_>(
&'_ self,
email: impl Into<String>,
newsletters: Vec<String>,
opts: Option<SubscribeOpts>
) -> Result<(), Error>
[src]
&'_ self,
email: impl Into<String>,
newsletters: Vec<String>,
opts: Option<SubscribeOpts>
) -> Result<(), Error>
pub async fn unsubscribe<'_>(
&'_ self,
token: impl AsRef<str>,
newsletters: Vec<String>,
optout: YesNo
) -> Result<(), Error>
[src]
&'_ self,
token: impl AsRef<str>,
newsletters: Vec<String>,
optout: YesNo
) -> Result<(), Error>
pub async fn get_user<'_>(
&'_ self,
token: impl AsRef<str>
) -> Result<Value, Error>
[src]
&'_ self,
token: impl AsRef<str>
) -> Result<Value, Error>
pub async fn update_user<'_>(
&'_ self,
email: impl Into<String>,
token: impl AsRef<str>,
opts: Option<UpdateUserOpts>
) -> Result<(), Error>
[src]
&'_ self,
email: impl Into<String>,
token: impl AsRef<str>,
opts: Option<UpdateUserOpts>
) -> Result<(), Error>
pub async fn newsletters<'_>(&'_ self) -> Result<Value, Error>
[src]
pub async fn debug_user<'_>(
&'_ self,
email: impl AsRef<str>,
supertoken: impl AsRef<str>
) -> Result<Value, Error>
[src]
&'_ self,
email: impl AsRef<str>,
supertoken: impl AsRef<str>
) -> Result<Value, Error>
pub async fn lookup_user<'_>(
&'_ self,
email: impl AsRef<str>
) -> Result<Value, Error>
[src]
&'_ self,
email: impl AsRef<str>
) -> Result<Value, Error>
pub async fn recover<'_>(
&'_ self,
email: impl Into<String>
) -> Result<(), Error>
[src]
&'_ self,
email: impl Into<String>
) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Basket
impl Send for Basket
impl Sync for Basket
impl Unpin for Basket
impl !UnwindSafe for Basket
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,