pub struct ClientToken {
pub url: String,
pub base_url: Option<String>,
pub doc_id: String,
pub token: Option<String>,
pub authorization: Authorization,
}Fields§
§url: StringThe URL compatible with the y-websocket provider. The provider will append a document ID to this string and establish a WebSocket connection.
base_url: Option<String>The base URL for document-level endpoints.
doc_id: StringThe document ID.
token: Option<String>An optional token that can be used to authenticate the client to the server.
The authorization level of the client.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClientToken
impl<'de> Deserialize<'de> for ClientToken
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientToken
impl RefUnwindSafe for ClientToken
impl Send for ClientToken
impl Sync for ClientToken
impl Unpin for ClientToken
impl UnwindSafe for ClientToken
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