git-subtree-dir: ruma-client-api git-subtree-mainline: e5233c49f610f866e3c9bf8529a0613171fc2fe4 git-subtree-split: 632eb9d520028816c5fb7224bd0aca8d1e3793f1
44 lines
1.4 KiB
Rust
44 lines
1.4 KiB
Rust
//! Endpoints for account registration and management.
|
|
|
|
pub mod bind_3pid;
|
|
pub mod change_password;
|
|
pub mod deactivate;
|
|
pub mod delete_3pid;
|
|
pub mod get_username_availability;
|
|
pub mod register;
|
|
pub mod request_3pid_management_token_via_email;
|
|
pub mod request_3pid_management_token_via_msisdn;
|
|
pub mod request_openid_token;
|
|
pub mod request_password_change_token_via_email;
|
|
pub mod request_password_change_token_via_msisdn;
|
|
pub mod request_registration_token_via_email;
|
|
pub mod request_registration_token_via_msisdn;
|
|
pub mod unbind_3pid;
|
|
|
|
pub mod whoami;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
/// Additional authentication information for requestToken endpoints.
|
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
|
pub struct IdentityServerInfo {
|
|
/// The ID server to send the onward request to as a hostname with an
|
|
/// appended colon and port number if the port is not the default.
|
|
pub id_server: String,
|
|
|
|
/// Access token previously registered with identity server.
|
|
pub id_access_token: String,
|
|
}
|
|
|
|
/// Possible values for deleting or unbinding 3PIDs
|
|
#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
|
|
#[serde(rename_all = "kebab-case")]
|
|
pub enum ThirdPartyIdRemovalStatus {
|
|
/// Either the homeserver couldn't determine the right identity server to contact, or the
|
|
/// identity server refused the operation.
|
|
NoSupport,
|
|
|
|
/// Success.
|
|
Success,
|
|
}
|