pub struct GlobalConfig { /* private fields */ }Expand description
全局配置
对应 TypeScript 版本的 GlobalConfig
Implementations§
Source§impl GlobalConfig
impl GlobalConfig
Sourcepub fn get_instance() -> &'static GlobalConfig
pub fn get_instance() -> &'static GlobalConfig
获取单例实例
Sourcepub fn res_code(&self) -> &ResCodeConfig
pub fn res_code(&self) -> &ResCodeConfig
获取返回码配置
Sourcepub fn res_message(&self) -> &ResMessageConfig
pub fn res_message(&self) -> &ResMessageConfig
获取返回信息配置
Auto Trait Implementations§
impl Freeze for GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnsafeUnpin for GlobalConfig
impl UnwindSafe for GlobalConfig
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