[−][src]Struct lisk_api_rust_client::http::client::Client
Fields
host: String
Methods
impl Client
[src]
pub fn new(host: &str) -> Client
[src]
pub fn get<T: DeserializeOwned>(&self, endpoint: &str) -> Result<T>
[src]
pub fn get_with_params<T, I, K, V>(
&self,
endpoint: &str,
parameters: I
) -> Result<T> where
T: DeserializeOwned,
I: IntoIterator,
I::Item: Borrow<(K, V)>,
K: AsRef<str>,
V: AsRef<str>,
[src]
&self,
endpoint: &str,
parameters: I
) -> Result<T> where
T: DeserializeOwned,
I: IntoIterator,
I::Item: Borrow<(K, V)>,
K: AsRef<str>,
V: AsRef<str>,
pub fn post<T, V>(
&self,
endpoint: &str,
payload: Option<HashMap<&str, V>>
) -> Result<T> where
T: DeserializeOwned,
V: Serialize,
[src]
&self,
endpoint: &str,
payload: Option<HashMap<&str, V>>
) -> Result<T> where
T: DeserializeOwned,
V: Serialize,
pub fn post_with_params<T, H, I, K, V>(
&self,
endpoint: &str,
payload: Option<HashMap<&str, H>>,
parameters: I
) -> Result<T> where
T: DeserializeOwned,
H: Serialize,
I: IntoIterator,
I::Item: Borrow<(K, V)>,
K: AsRef<str>,
V: AsRef<str>,
[src]
&self,
endpoint: &str,
payload: Option<HashMap<&str, H>>,
parameters: I
) -> Result<T> where
T: DeserializeOwned,
H: Serialize,
I: IntoIterator,
I::Item: Borrow<(K, V)>,
K: AsRef<str>,
V: AsRef<str>,
Trait Implementations
impl Clone for Client
[src]
fn clone(&self) -> Client
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Client
[src]
Auto Trait Implementations
Blanket Implementations
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>,
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>,