pub struct OidcClient {
pub id: Uuid,
pub client_id: String,
pub secret_hash: String,
pub name: String,
pub redirect_uris: Vec<String>,
pub grant_types: Vec<String>,
pub response_types: Vec<String>,
pub allowed_scopes: String,
pub created_at: DateTime<Utc>,
}Fields§
§id: Uuid§client_id: String§secret_hash: StringSHA-256 hash of the client secret (like a password — never stored raw).
name: String§redirect_uris: Vec<String>§grant_types: Vec<String>Allowed OAuth2 grant types (e.g. “authorization_code”, “refresh_token”).
response_types: Vec<String>Allowed response types (e.g. “code”).
allowed_scopes: StringSpace-separated allowed scopes (e.g. “openid profile email”).
created_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for OidcClient
impl Clone for OidcClient
Source§fn clone(&self) -> OidcClient
fn clone(&self) -> OidcClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OidcClient
impl Debug for OidcClient
Source§impl<'de> Deserialize<'de> for OidcClient
impl<'de> Deserialize<'de> for OidcClient
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OidcClient
impl RefUnwindSafe for OidcClient
impl Send for OidcClient
impl Sync for OidcClient
impl Unpin for OidcClient
impl UnsafeUnpin for OidcClient
impl UnwindSafe for OidcClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more