1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
#![doc = include_str!("../../docs/control.md")]
use serde::{Deserialize, Serialize};
use super::id::*;
/// Request representing users joining a channel on another server
#[derive(Debug, Serialize, Deserialize)]
pub struct CrossJoinChannelRequest {
/// the server name of the server that the user in
from: ServerName,
/// the server name of the server that the channel in
to: ServerName,
channel: ChannelId,
}
/// Response representing the result of a cross join channel request
#[derive(Debug, Serialize, Deserialize)]
pub struct CrossJoinChannelResponse {
/// status info (send success or fail)
status: String,
// info: String,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct RegisterPublicChannelRequest {
/// server name of user's homeserver
from: ServerName,
/// the user id sent by the application
sender: UserId,
channel: ChannelId,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct RegisterPublicChannelResponse {
/// status info (send success or fail)
status: String,
// info: String,
}