tuwunel_admin/query/appservice/mod.rs
1mod all;
2mod get_registration;
3
4use clap::Subcommand;
5use tuwunel_core::Result;
6
7use crate::admin_command_dispatch;
8
9#[admin_command_dispatch(handler_prefix = "appservice")]
10#[derive(Debug, Subcommand)]
11/// All the getters and iterators from src/service/appservice/
12pub(crate) enum AppserviceCommand {
13 /// - Gets the appservice registration info/details from the ID as a string
14 GetRegistration {
15 /// Appservice registration ID
16 appservice_id: String,
17 },
18
19 /// - Gets all appservice registrations with their ID and registration info
20 All,
21}