Struct oxide_auth_db::db_service::redis::StringfiedEncodedClient
source · [−]pub struct StringfiedEncodedClient {
pub client_id: String,
pub redirect_uri: String,
pub additional_redirect_uris: Vec<String>,
pub default_scope: Option<String>,
pub client_secret: Option<String>,
}
Expand description
A client whose credentials have been wrapped by a password policy.
This provides a standard encoding for Registrars
who wish to store their clients and makes it
possible to test password policies.
Fields
client_id: String
The id of this client. If this is was registered at a Registrar
, this should be a key
to the instance.
redirect_uri: String
The registered redirect uri.
Unlike additional_redirect_uris
, this is registered as the default redirect uri
and will be replaced if, for example, no redirect_uri
is specified in the request parameter.
additional_redirect_uris: Vec<String>
The redirect uris that can be registered in addition to the redirect_uri
.
If you want to register multiple redirect uris, register them together with redirect_uri
.
default_scope: Option<String>
The scope the client gets if none was given.
client_secret: Option<String>
client_secret, for authentication.
Implementations
sourceimpl StringfiedEncodedClient
impl StringfiedEncodedClient
pub fn to_encoded_client(&self) -> Result<EncodedClient>
pub fn from_encoded_client(encoded_client: &EncodedClient) -> Self
Trait Implementations
sourceimpl Clone for StringfiedEncodedClient
impl Clone for StringfiedEncodedClient
sourcefn clone(&self) -> StringfiedEncodedClient
fn clone(&self) -> StringfiedEncodedClient
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StringfiedEncodedClient
impl Debug for StringfiedEncodedClient
sourceimpl<'de> Deserialize<'de> for StringfiedEncodedClient
impl<'de> Deserialize<'de> for StringfiedEncodedClient
sourcefn 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
sourceimpl Serialize for StringfiedEncodedClient
impl Serialize for StringfiedEncodedClient
Auto Trait Implementations
impl RefUnwindSafe for StringfiedEncodedClient
impl Send for StringfiedEncodedClient
impl Sync for StringfiedEncodedClient
impl Unpin for StringfiedEncodedClient
impl UnwindSafe for StringfiedEncodedClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more