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}
12
13pub trait IntoPublic {
14    type Public: Serialize;
15    fn into_public(self) -> Self::Public;
16}