pub struct ReqwestGateway {
pub client: ClientWithMiddleware,
pub urls: UrlBuilder,
}Fields§
§client: ClientWithMiddleware§urls: UrlBuilderImplementations§
Source§impl ReqwestGateway
impl ReqwestGateway
pub fn new() -> Self
pub fn with_config(config: &FunPayConfig) -> Self
pub fn with_proxy(proxy_url: &str) -> Self
pub fn with_proxy_and_config(proxy_url: &str, config: &FunPayConfig) -> Self
Trait Implementations§
Source§impl Default for ReqwestGateway
impl Default for ReqwestGateway
Source§impl FunpayGateway for ReqwestGateway
impl FunpayGateway for ReqwestGateway
fn get_home<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
golden_key: &'life1 str,
user_agent: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(String, Vec<String>), FunPayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_chat_page<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
golden_key: &'life1 str,
user_agent: &'life2 str,
chat_id: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(String, Vec<String>), FunPayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_orders_trade<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
golden_key: &'life1 str,
user_agent: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, FunPayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_order_page<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
golden_key: &'life1 str,
user_agent: &'life2 str,
order_id: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<String, FunPayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn post_runner<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
&'life0 self,
golden_key: &'life1 str,
user_agent: &'life2 str,
csrf: &'life3 str,
phpsessid: Option<&'life4 str>,
objects_json: &'life5 str,
request_json: Option<&'life6 str>,
) -> Pin<Box<dyn Future<Output = Result<Value, FunPayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
fn post_offer_save<'life0, 'life1, 'async_trait>(
&'life0 self,
request: OfferSaveRequest<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Value, FunPayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_offer_edit_page<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
golden_key: &'life1 str,
user_agent: &'life2 str,
node_id: i64,
offer_id: i64,
) -> Pin<Box<dyn Future<Output = Result<String, FunPayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_lots_trade_page<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
golden_key: &'life1 str,
user_agent: &'life2 str,
node_id: i64,
) -> Pin<Box<dyn Future<Output = Result<String, FunPayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_lots_page<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
golden_key: &'life1 str,
user_agent: &'life2 str,
node_id: i64,
) -> Pin<Box<dyn Future<Output = Result<String, FunPayError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for ReqwestGateway
impl !RefUnwindSafe for ReqwestGateway
impl Send for ReqwestGateway
impl Sync for ReqwestGateway
impl Unpin for ReqwestGateway
impl !UnwindSafe for ReqwestGateway
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more