UrlBundle slightly better docs

This commit is contained in:
kozabrada123 2023-07-10 17:22:31 +02:00
parent 282bc06cff
commit 832cb92abc
1 changed files with 9 additions and 0 deletions

View File

@ -18,9 +18,18 @@ pub mod voice;
#[derive(Clone, Default, Debug, PartialEq, Eq)] #[derive(Clone, Default, Debug, PartialEq, Eq)]
/// A URLBundle is a struct which bundles together the API-, Gateway- and CDN-URLs of a Spacebar /// A URLBundle is a struct which bundles together the API-, Gateway- and CDN-URLs of a Spacebar
/// instance. /// instance.
/// # Notes
/// All the urls can be found on the /api/policies/instance/domains endpoint of a spacebar server
pub struct UrlBundle { pub struct UrlBundle {
/// The api's url.
/// Ex: `https://old.server.spacebar.chat/api`
pub api: String, pub api: String,
/// The gateway websocket url.
/// Note that because this is a websocket url, it will always start with `wss://`
/// Ex: `wss://gateway.old.server.spacebar.chat`
pub wss: String, pub wss: String,
/// The CDN's url.
/// Ex: `https://cdn.old.server.spacebar.chat`
pub cdn: String, pub cdn: String,
} }