[Add] Structure
This commit is contained in:
parent
70015c4d69
commit
826fb9ce50
44 changed files with 2210 additions and 2721 deletions
21
src/models/mod.rs
Normal file
21
src/models/mod.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
mod ids;
|
||||
mod iota;
|
||||
mod notification;
|
||||
mod omikron;
|
||||
mod user;
|
||||
|
||||
fn serialize_public_key<S>(
|
||||
key: &mtp::crypto::PublicKeyBundle,
|
||||
serializer: S,
|
||||
) -> std::result::Result<S::Ok, S::Error>
|
||||
where
|
||||
S: serde::Serializer,
|
||||
{
|
||||
serializer.serialize_str(&key.to_base64())
|
||||
}
|
||||
|
||||
pub use ids::{IotaId, OmikronId, UserId};
|
||||
pub use iota::Iota;
|
||||
pub use notification::Notification;
|
||||
pub use omikron::Omikron;
|
||||
pub use user::User;
|
||||
Loading…
Reference in a new issue