Struct libstripe::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Methods
impl Client
[src]
pub fn new(api_key: &str) -> Client
[src]
pub fn uri_type(&mut self, _type: UriType)
[src]
pub fn stripe_account(&mut self, acct: &str)
[src]
pub fn idempotent(&mut self, key: &str)
[src]
pub fn get<A, B>(&self, path: &str, data: B) -> Result<A, Error> where
A: DeserializeOwned,
B: Serialize,
[src]
A: DeserializeOwned,
B: Serialize,
pub fn get_empty<A>(&self, path: &str) -> Result<A, Error> where
A: DeserializeOwned,
[src]
A: DeserializeOwned,
pub fn post<A, B>(&self, path: &str, data: B) -> Result<A, Error> where
A: DeserializeOwned,
B: Serialize,
[src]
A: DeserializeOwned,
B: Serialize,
pub fn post_empty<A>(&self, path: &str) -> Result<A, Error> where
A: DeserializeOwned,
[src]
A: DeserializeOwned,
pub fn delete<A, B>(&self, path: &str, data: B) -> Result<A, Error> where
A: DeserializeOwned,
B: Serialize,
[src]
A: DeserializeOwned,
B: Serialize,
pub fn delete_empty<A>(&self, path: &str) -> Result<A, Error> where
A: DeserializeOwned,
[src]
A: DeserializeOwned,
pub fn upload<A, B>(&self, path: &str, data: B, form: Form) -> Result<A, Error> where
A: DeserializeOwned,
B: Serialize,
[src]
A: DeserializeOwned,
B: Serialize,
pub fn request<A, B>(
&self,
method: Method,
path: &str,
data: B,
form: Option<Form>
) -> Result<A, Error> where
A: DeserializeOwned,
B: Serialize,
[src]
&self,
method: Method,
path: &str,
data: B,
form: Option<Form>
) -> Result<A, Error> where
A: DeserializeOwned,
B: Serialize,