[Add] Structure

This commit is contained in:
Alex Emmet 2026-07-20 22:21:43 +02:00
commit 826fb9ce50
44 changed files with 2210 additions and 2721 deletions

21
src/models/mod.rs Normal file
View 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;