pub struct ClientConfig {
pub region: Region,
pub platform: Platform,
pub app_version: String,
pub app_id: String,
pub app_traffic: String,
pub client_id: String,
pub app_key: String,
pub equipment_code: String,
pub language: String,
pub sign_key: String,
pub user_agent: String,
}Expand description
Static client identity + request-signing material.
NOTE (reverse-engineering pending): app_key, client_id and sign_key
are not hardcoded literals in the desktop binary — they are recovered from
mitmproxy capture / APK analysis (see the project plan, Steps 2–3). Until
then they default to empty and signing will return crate::Error::Signing.
Fields§
§region: Region§platform: Platform§app_version: StringX-APP-VERSION — e.g. the Studio build 6.0.2 or the app version.
app_id: StringX-APP — short app identifier.
app_traffic: Stringapp_traffic header — release channel (e.g. release).
client_id: StringX-Client-Id.
app_key: StringX-MCS-AppKey — the app key sent with signed requests.
equipment_code: StringPer-install X-Equipment-Code. Persisted by the caller across runs.
language: StringUI language sent as X-Language (e.g. en).
sign_key: StringHMAC key for request signing (client_key/secret). Pending capture.
user_agent: StringUser-Agent header.
Implementations§
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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