Struct dittolive_ditto::ditto::AppId
source · [−]pub struct AppId(_);
Implementations
sourceimpl AppId
impl AppId
pub fn from_uuid(uuid: Uuid) -> Self
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
pub fn as_str(&self) -> &str
pub fn to_c_string(&self) -> Box
sourcepub fn default_auth_url(&self) -> String
pub fn default_auth_url(&self) -> String
Returns the default auth URL associated to the App ID
this is https://{app_id}.cloud.ditto.live/
sourcepub fn default_sync_url(&self) -> String
pub fn default_sync_url(&self) -> String
Returns the default Websocket Sync URL which is
wss://{app_id}.cloud.ditto.live/
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more