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:
@ -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;
|
15
src/api_data/res_get_ws_token.rs
Normal file
15
src/api_data/res_get_ws_token.rs
Normal 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 }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user