pub struct EncodedClient {
pub client_id: String,
pub redirect_uri: RegisteredUrl,
pub additional_redirect_uris: Vec<RegisteredUrl>,
pub default_scope: Scope,
pub encoded_client: ClientType,
}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: StringThe id of this client. If this is was registered at a Registrar, this should be a key
to the instance.
redirect_uri: RegisteredUrlThe 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<RegisteredUrl>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: ScopeThe scope the client gets if none was given.
encoded_client: ClientTypeThe authentication data.
Trait Implementations§
Source§impl Clone for EncodedClient
impl Clone for EncodedClient
Source§fn clone(&self) -> EncodedClient
fn clone(&self) -> EncodedClient
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 EncodedClient
impl Debug for EncodedClient
Source§impl<'de> Deserialize<'de> for EncodedClient
impl<'de> Deserialize<'de> for EncodedClient
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 EncodedClient
impl RefUnwindSafe for EncodedClient
impl Send for EncodedClient
impl Sync for EncodedClient
impl Unpin for EncodedClient
impl UnwindSafe for EncodedClient
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