Struct dittolive_ditto::ditto::AppId
source · pub struct AppId(/* private fields */);
Expand description
The Ditto application Id
Implementations§
source§impl AppId
impl AppId
sourcepub fn from_env(var: &str) -> Result<Self, DittoError>
pub fn from_env(var: &str) -> Result<Self, DittoError>
Attempt to grab a specific AppId from some environment variable
sourcepub fn to_c_string(&self) -> Box
pub fn to_c_string(&self) -> Box
Return the corresponding c string
sourcepub fn default_auth_url(&self) -> String
pub fn default_auth_url(&self) -> String
Return the default auth URL associated with the app Id. This is of the form
https://{app_id}.cloud.ditto.live/
by default.
sourcepub fn default_sync_url(&self) -> String
pub fn default_sync_url(&self) -> String
Return the default WebSocket sync URL which is of the form
wss://{app_id}.cloud.ditto.live/
by default.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AppId
impl Send for AppId
impl Sync for AppId
impl Unpin for AppId
impl UnwindSafe for AppId
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