Skip to main content

toro_auth_core/
lib.rs

1pub mod identity;
2pub mod provider;
3pub mod session;
4
5use serde::Serialize;
6use uuid::Uuid;
7
8pub trait ObjectId {
9    fn id(&self) -> Option<Uuid>;
10    fn set_id(&mut self, id: Uuid);
11    fn username(&self) -> String;
12}
13
14pub trait IntoPublic {
15    type Public: Serialize;
16    fn into_public(self) -> Self::Public;
17}