Skip to main content

tuwunel_admin/query/threepid/
mod.rs

1mod address_in_use;
2mod get_bindings;
3mod user_id_for_email;
4
5use clap::Subcommand;
6use ruma::OwnedUserId;
7use tuwunel_core::Result;
8
9use crate::admin_command_dispatch;
10
11#[admin_command_dispatch]
12#[derive(Debug, Subcommand)]
13/// All the getters from src/service/threepid/
14pub(crate) enum ThreepidCommand {
15	GetBindings {
16		user_id: OwnedUserId,
17	},
18
19	UserIdForEmail {
20		address: String,
21	},
22
23	AddressInUse {
24		address: String,
25	},
26}