pub struct WechatClient { /* private fields */ }Implementations§
Source§impl WechatClient
impl WechatClient
pub fn with_mode(cfg: Arc<WechatConfig>, mode: Mode) -> Self
pub async fn mp(&self, order: Value) -> Result<Value, PayError>
pub async fn miniapp(&self, order: Value) -> Result<Value, PayError>
pub async fn h5(&self, order: Value) -> Result<Value, PayError>
pub async fn app(&self, order: Value) -> Result<Value, PayError>
pub async fn native(&self, order: Value) -> Result<Value, PayError>
pub async fn micropay(&self, order: Value) -> Result<Value, PayError>
pub async fn query(&self, params: Value) -> Result<Value, PayError>
pub async fn close(&self, params: Value) -> Result<Value, PayError>
pub async fn refund(&self, order: Value) -> Result<Value, PayError>
pub async fn query_refund(&self, params: Value) -> Result<Value, PayError>
pub async fn transfer(&self, order: Value) -> Result<Value, PayError>
pub async fn refresh_platform_certs(&self) -> Result<(), PayError>
pub async fn sign_and_post( &self, method: &str, url: &str, body: &Value, ) -> Result<Value, PayError>
Auto Trait Implementations§
impl Freeze for WechatClient
impl !RefUnwindSafe for WechatClient
impl Send for WechatClient
impl Sync for WechatClient
impl Unpin for WechatClient
impl !UnwindSafe for WechatClient
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