ruma_client_api/rtc/
transports.rs1pub mod v1 {
6 use ruma_common::{
11 api::{auth_scheme::AccessToken, request, response},
12 metadata,
13 };
14
15 use crate::rtc::RtcTransport;
16
17 metadata! {
18 method: GET,
19 rate_limited: false,
20 authentication: AccessToken,
21 history: {
22 unstable => "/_matrix/client/unstable/org.matrix.msc4143/rtc/transports",
23 }
24 }
25
26 #[request]
28 #[derive(Default)]
29 pub struct Request {}
30
31 impl Request {
32 pub fn new() -> Self {
34 Self {}
35 }
36 }
37
38 #[response]
40 #[derive(Default)]
41 pub struct Response {
42 pub rtc_transports: Vec<RtcTransport>,
44 }
45
46 impl Response {
47 pub fn new(rtc_transports: Vec<RtcTransport>) -> Self {
49 Self { rtc_transports }
50 }
51 }
52}