[−][src]Struct stripe_api::Client
Methods
impl Client
[src]
pub fn new<S: AsRef<str>>(api_key: S) -> Client
[src]
pub fn stripe_key<S: AsRef<str>>(&mut self, key: S)
[src]
pub fn stripe_account(&mut self, acct: &str)
[src]
pub fn idempotency(&mut self, key: &str)
[src]
pub fn get<A, B>(&self, path: UrlPath, param: Vec<&str>, data: B) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
[src]
A: DeserializeOwned + Send + 'static,
B: Serialize,
pub fn post<A, B>(&self, path: UrlPath, param: Vec<&str>, data: B) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
[src]
A: DeserializeOwned + Send + 'static,
B: Serialize,
pub fn delete<A, B>(
&self,
path: UrlPath,
param: Vec<&str>,
data: B
) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
[src]
&self,
path: UrlPath,
param: Vec<&str>,
data: B
) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
pub fn upload<A, B>(
&self,
path: UrlPath,
param: Vec<&str>,
data: B,
form: Form
) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
[src]
&self,
path: UrlPath,
param: Vec<&str>,
data: B,
form: Form
) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
pub fn request<A, B>(
&self,
method: Method,
path: UrlPath,
param: Vec<&str>,
data: B,
form: Option<Form>
) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
[src]
&self,
method: Method,
path: UrlPath,
param: Vec<&str>,
data: B,
form: Option<Form>
) -> Result<A> where
A: DeserializeOwned + Send + 'static,
B: Serialize,
Trait Implementations
Auto Trait Implementations
impl Unpin for Client
impl Sync for Client
impl Send for Client
impl UnwindSafe for Client
impl RefUnwindSafe for Client
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,