pub enum Region {
Global,
Cn,
Test,
}Expand description
Cloud environment / region. The base host is region-selected; this user’s
desktop startup.ini reported current_area=OverSea →
HOST_OPENAPI_INSTA360=openapi-g.insta360.com.
Variants§
Global
Global / OverSea: openapi-g.insta360.com.
Cn
Mainland China: openapi.insta360.com.
Test
Test environment: openapi-test.insta360.com.
Implementations§
Source§impl Region
impl Region
Sourcepub fn openapi_base(self) -> &'static str
pub fn openapi_base(self) -> &'static str
Base origin for the account/app API (/account/*, /app/*).
Sourcepub fn cloud_base(self) -> &'static str
pub fn cloud_base(self) -> &'static str
Base origin for the cloud media API (/cloud/service/*). This is a
different host from the account API — verified: list/download 404 on
openapi-g but serve from the regional service-* host.
Sourcepub fn mainland_flag(self) -> &'static str
pub fn mainland_flag(self) -> &'static str
Value sent in the X-MainLand header (1 for CN, 0 otherwise).
Trait Implementations§
impl Copy for Region
impl Eq for Region
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnsafeUnpin for Region
impl UnwindSafe for Region
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