pub enum Pay {
Wechat(Wechat),
Alipay,
}Variants§
Implementations§
Trait Implementations§
Source§impl PayMode for Pay
impl PayMode for Pay
Source§fn jsapi(
&mut self,
sub_mchid: &str,
out_trade_no: &str,
description: &str,
total_fee: f64,
notify_url: &str,
sp_openid: &str,
) -> Result<JsonValue, String>
fn jsapi( &mut self, sub_mchid: &str, out_trade_no: &str, description: &str, total_fee: f64, notify_url: &str, sp_openid: &str, ) -> Result<JsonValue, String>
jsapi 支付
fn login(&self, code: &str) -> Result<JsonValue, String>
Auto Trait Implementations§
impl Freeze for Pay
impl RefUnwindSafe for Pay
impl Send for Pay
impl Sync for Pay
impl Unpin for Pay
impl UnwindSafe for Pay
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