pub struct WechatpayClient { /* private fields */ }
Expand description
API Client
Implementations§
Source§impl WechatpayClient
impl WechatpayClient
pub fn new( appid: &str, mch_id: &str, api_key: &str, notify_url: &str, cert: &str, ) -> WechatpayClient
pub fn pay( &self, params: BTreeMap<String, String>, trade_type: TradeType, retries: Option<u32>, ) -> WechatpayResult
pub fn micro_pay( &self, params: BTreeMap<String, String>, retries: Option<u32>, ) -> WechatpayResult
pub fn jsapi_pay( &self, params: BTreeMap<String, String>, retries: Option<u32>, ) -> WechatpayResult
pub fn qrcode_pay( &self, params: BTreeMap<String, String>, retries: Option<u32>, ) -> WechatpayResult
pub fn app_pay( &self, params: BTreeMap<String, String>, retries: Option<u32>, ) -> WechatpayResult
pub fn query_order(&self, id: OrderIdentifier) -> WechatpayResult
Auto Trait Implementations§
impl Freeze for WechatpayClient
impl RefUnwindSafe for WechatpayClient
impl Send for WechatpayClient
impl Sync for WechatpayClient
impl Unpin for WechatpayClient
impl UnwindSafe for WechatpayClient
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