1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Can get WebSocket access token

This commit is contained in:
2021-02-05 10:37:37 +01:00
parent 62a73b25d3
commit 82b845c603
8 changed files with 129 additions and 4 deletions

View File

@ -55,4 +55,5 @@ pub mod general_settings_api;
pub mod language_settings_api;
pub mod security_settings_api;
pub mod account_image_settings_api;
pub mod res_create_custom_emoji;
pub mod res_create_custom_emoji;
pub mod res_get_ws_token;

View File

@ -0,0 +1,15 @@
//! # Get WebSocket token result
//!
//! @author Pierre Hubert
use serde::Serialize;
#[derive(Serialize)]
pub struct ResGetWsToken {
token: String,
}
impl ResGetWsToken {
pub fn new(token: String) -> Self {
ResGetWsToken { token }
}
}