Struct mws::client::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Methods
impl Client
[src]
pub fn new(options: ClientOptions) -> Result<Client>
[src]
pub fn with_http_client(options: ClientOptions, http_client: Client) -> Client
[src]
pub fn request<P>(
&self,
method: Method,
path: &str,
version: &str,
action: &str,
parameters: P
) -> Result<Response> where
P: Into<Vec<(String, String)>>,
[src]
&self,
method: Method,
path: &str,
version: &str,
action: &str,
parameters: P
) -> Result<Response> where
P: Into<Vec<(String, String)>>,
pub fn request_with_body<P, R>(
&self,
method: Method,
path: &str,
version: &str,
action: &str,
parameters: P,
body: R,
content_md5: String,
content_type: ContentType
) -> Result<Response> where
P: Into<Vec<(String, String)>>,
R: Read + Send + 'static,
[src]
&self,
method: Method,
path: &str,
version: &str,
action: &str,
parameters: P,
body: R,
content_md5: String,
content_type: ContentType
) -> Result<Response> where
P: Into<Vec<(String, String)>>,
R: Read + Send + 'static,
pub fn request_xml<P, T>(
&self,
method: Method,
path: &str,
version: &str,
action: &str,
parameters: P
) -> Result<Response<T>> where
P: Into<Vec<(String, String)>>,
T: FromXMLStream<Stream<Response>>,
[src]
&self,
method: Method,
path: &str,
version: &str,
action: &str,
parameters: P
) -> Result<Response<T>> where
P: Into<Vec<(String, String)>>,
T: FromXMLStream<Stream<Response>>,
pub fn request_xml_with_body<P, R, T>(
&self,
method: Method,
path: &str,
version: &str,
action: &str,
parameters: P,
body: R,
content_md5: String,
content_type: ContentType
) -> Result<Response<T>> where
P: Into<Vec<(String, String)>>,
T: FromXMLStream<Stream<Response>>,
R: Read + Send + 'static,
[src]
&self,
method: Method,
path: &str,
version: &str,
action: &str,
parameters: P,
body: R,
content_md5: String,
content_type: ContentType
) -> Result<Response<T>> where
P: Into<Vec<(String, String)>>,
T: FromXMLStream<Stream<Response>>,
R: Read + Send + 'static,
pub fn request_tdff<P, T>(
&self,
method: Method,
path: &str,
version: &str,
action: &str,
parameters: P
) -> Result<Response<T>> where
P: Into<Vec<(String, String)>>,
T: FromTdff<Response>,
[src]
&self,
method: Method,
path: &str,
version: &str,
action: &str,
parameters: P
) -> Result<Response<T>> where
P: Into<Vec<(String, String)>>,
T: FromTdff<Response>,