lexe_common/api.rs
1// TODO(max): All of these modules should be moved to `lexe_api[_core]`.
2
3use serde::{Deserialize, Serialize};
4
5/// Authentication and User Signup.
6// TODO(max): `error` depends on `auth`
7pub mod auth;
8/// Data types returned from the fiat exchange rate API.
9pub mod fiat_rates;
10/// API models which don't fit anywhere else.
11pub mod models;
12/// Data types specific to provisioning.
13pub mod provision;
14/// Revocable clients.
15pub mod revocable_clients;
16/// `TestEvent`.
17pub mod test_event;
18/// User ID-like types: `User`, `UserPk`, `NodePk`, `Scid`
19pub mod user;
20/// Data types which relate to node versions: `NodeEnclave`, `MeasurementStruct`
21pub mod version;
22
23/// A randomly generated id for each mega node.
24pub type MegaId = u16;
25
26#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
27pub struct MegaIdStruct {
28 pub mega_id: MegaId,
29}