pub struct GatewayConfig {
pub auth_server: String,
pub account: String,
pub password: String,
pub region: String,
pub listen_addr: String,
pub device_id: String,
pub app_lang: i32,
}Expand description
网关配置
Fields§
§auth_server: String认证服务器 URL
account: String登录账号
password: String密码(明文,内部做 MD5)
region: String后端服务器区域 (gz/sh/hk)
listen_addr: StringAPI 服务监听地址
device_id: String设备 ID
app_lang: i32App 语言: 0=简体 1=繁体 2=英文 (对应 C++ NN_AppLanguage)
Trait Implementations§
Source§impl Clone for GatewayConfig
impl Clone for GatewayConfig
Source§fn clone(&self) -> GatewayConfig
fn clone(&self) -> GatewayConfig
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 GatewayConfig
impl RefUnwindSafe for GatewayConfig
impl Send for GatewayConfig
impl Sync for GatewayConfig
impl Unpin for GatewayConfig
impl UnwindSafe for GatewayConfig
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