junobuild_auth/profile/types.rs
1pub trait Validated {
2 fn validate(&self) -> Result<(), String>;
3}
4
5pub trait OpenIdProfile {
6 fn email(&self) -> Option<&str>;
7 fn name(&self) -> Option<&str>;
8 fn given_name(&self) -> Option<&str>;
9 fn family_name(&self) -> Option<&str>;
10 fn preferred_username(&self) -> Option<&str>;
11 fn picture(&self) -> Option<&str>;
12 fn locale(&self) -> Option<&str>;
13}