Trait stellar_client::endpoint::IntoRequest [−][src]
pub trait IntoRequest {
type Response: DeserializeOwned;
fn into_request(self, host: &str) -> Result<Request<Body>>;
}Declares the definition of a stellar endpoint and the return type.
Associated Types
type Response: DeserializeOwned
The deserializable type that is expected to come back from the stellar server.
Required Methods
fn into_request(self, host: &str) -> Result<Request<Body>>
The request body to be sent to stellar. Generally this is just a () unit.
Converts the implementing struct into an http request.
Implementors
impl IntoRequest for stellar_client::endpoint::account::Details type Response = Account;impl IntoRequest for Data type Response = Datum;impl IntoRequest for Trades type Response = Records<Trade>;impl IntoRequest for stellar_client::endpoint::account::Transactions type Response = Records<Transaction>;impl IntoRequest for stellar_client::endpoint::account::Effects type Response = Records<Effect>;impl IntoRequest for stellar_client::endpoint::account::Operations type Response = Records<Operation>;impl IntoRequest for stellar_client::endpoint::account::Payments type Response = Records<Operation>;impl IntoRequest for Offers type Response = Records<Offer>;impl IntoRequest for stellar_client::endpoint::asset::All type Response = Records<Asset>;impl IntoRequest for stellar_client::endpoint::effect::All type Response = Records<Effect>;impl IntoRequest for stellar_client::endpoint::ledger::All type Response = Records<Ledger>;impl IntoRequest for stellar_client::endpoint::ledger::Details type Response = Ledger;impl IntoRequest for stellar_client::endpoint::ledger::Payments type Response = Records<Operation>;impl IntoRequest for stellar_client::endpoint::ledger::Transactions type Response = Records<Transaction>;impl IntoRequest for stellar_client::endpoint::ledger::Effects type Response = Records<Effect>;impl IntoRequest for stellar_client::endpoint::ledger::Operations type Response = Records<Operation>;impl IntoRequest for stellar_client::endpoint::operation::All type Response = Records<Operation>;impl IntoRequest for stellar_client::endpoint::operation::Details type Response = Operation;impl IntoRequest for stellar_client::endpoint::operation::Effects type Response = Records<Effect>;impl IntoRequest for stellar_client::endpoint::orderbook::Details type Response = Orderbook;impl IntoRequest for stellar_client::endpoint::payment::All type Response = Records<Operation>;impl IntoRequest for FindPath type Response = Records<PaymentPath>;impl IntoRequest for stellar_client::endpoint::trade::All type Response = Records<Trade>;impl IntoRequest for Aggregations type Response = Records<TradeAggregation>;impl IntoRequest for stellar_client::endpoint::transaction::All type Response = Records<Transaction>;impl IntoRequest for stellar_client::endpoint::transaction::Details type Response = Transaction;impl IntoRequest for stellar_client::endpoint::transaction::Effects type Response = Records<Effect>;impl IntoRequest for stellar_client::endpoint::transaction::Payments type Response = Records<Operation>;impl IntoRequest for stellar_client::endpoint::transaction::Operations type Response = Records<Operation>;