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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ManuallyDropMut for T
impl<T> ManuallyDropMut for T
type Ret = ManuallyDrop<T>
pub fn manually_drop_mut(&'__ mut self) -> &'__ mut ManuallyDrop<T>
impl<T> To for T where
T: ?Sized,
impl<T> To for T where
T: ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more