ddnet_account_client/
lib.rs

1//! This crate contains a base implementation for
2//! a client to do account related operations.
3//! It helps sending data, storing results persistently.
4//! This crate is not intended for creating UI,
5//! any game logic nor knowing about the communication details
6//! (be it UDP, HTTP or other stuff).
7//! It uses interfaces to abstract such concepts away.
8
9#![deny(missing_docs)]
10#![deny(warnings)]
11#![deny(clippy::nursery)]
12#![deny(clippy::all)]
13
14pub(crate) mod safe_interface;
15
16/// Requests the account info of the account.
17pub mod account_info;
18/// Requests an account token email based.
19pub mod account_token;
20/// Operations related to getting the account server certificates
21pub mod certs;
22/// Requests a token for an email based login.
23pub mod credential_auth_token;
24/// Requests to delete the account.
25pub mod delete;
26/// Types related to errors during client operations.
27pub mod errors;
28/// Communication interface for the client to
29/// do requests to the account server.
30pub mod interface;
31/// Requests to link another credential to an
32/// existing account.
33pub mod link_credential;
34/// Requests to create a new login for the corresponding
35/// account.
36pub mod login;
37/// Request to log out the current user session.
38pub mod logout;
39/// Request to log out all sessions of a user.
40pub mod logout_all;
41/// Sign an already existing session key-pair
42/// with a certificate on the account server.
43pub mod sign;
44/// Requests to unlink a credential from an account.
45pub mod unlink_credential;