pub struct BackendConfig {
pub app_id: AppId,
pub app_secret: AppSecret,
pub http: HttpConfig,
}Expand description
后端授权配置
Fields§
§app_id: AppId微信应用ID(公众号、开放平台、移动应用通用)
app_secret: AppSecret应用密钥
http: HttpConfigHTTP传输层配置
Implementations§
Source§impl BackendConfig
impl BackendConfig
Source§impl BackendConfig
impl BackendConfig
Sourcepub fn app_secret(&self) -> &AppSecret
pub fn app_secret(&self) -> &AppSecret
获取应用密钥
Sourcepub fn http_config(&self) -> &HttpConfig
pub fn http_config(&self) -> &HttpConfig
获取HTTP配置
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl Send for BackendConfig
impl Sync for BackendConfig
impl Unpin for BackendConfig
impl UnwindSafe for BackendConfig
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