pub struct Config {
pub app_id: String,
pub app_secret: String,
pub base_url: String,
pub token_mode: TokenMode,
}Expand description
小程序配置
Fields§
§app_id: String小程序 AppID
app_secret: String小程序 AppSecret
base_url: StringAPI 基础地址
token_mode: TokenModetoken 获取模式
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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