pub struct AppProfile {
pub app_id: &'static str,
pub app_version: &'static str,
pub company_key: &'static str,
pub base_url: &'static str,
pub locale: &'static str,
pub source: i32,
pub app_client: &'static str,
}Expand description
White-label vendor app identity. The ShineMonitor backend is
multi-tenant: devices are scoped to the _app_id_ they were
registered under. Two presets (WATCHPOWER, RENOCLIENT) are
shipped; construct a custom one for other Eybond white-labels.
Fields§
§app_id: &'static str§app_version: &'static str§company_key: &'static str§base_url: &'static str§locale: &'static str§source: i32§app_client: &'static strImplementations§
Source§impl AppProfile
impl AppProfile
Sourcepub const WATCHPOWER: AppProfile
pub const WATCHPOWER: AppProfile
WatchPower (wifiapp.volfw.watchpower) — the default profile.
Sourcepub const RENOCLIENT: AppProfile
pub const RENOCLIENT: AppProfile
RenoClient / Renovigi (com.eybond.renoclient).
Sourcepub fn suffix_context(&self) -> String
pub fn suffix_context(&self) -> String
Build the query-string suffix this app injects into every request.
Trait Implementations§
Source§impl Clone for AppProfile
impl Clone for AppProfile
Source§fn clone(&self) -> AppProfile
fn clone(&self) -> AppProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppProfile
impl Debug for AppProfile
Source§impl PartialEq for AppProfile
impl PartialEq for AppProfile
impl StructuralPartialEq for AppProfile
Auto Trait Implementations§
impl Freeze for AppProfile
impl RefUnwindSafe for AppProfile
impl Send for AppProfile
impl Sync for AppProfile
impl Unpin for AppProfile
impl UnsafeUnpin for AppProfile
impl UnwindSafe for AppProfile
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