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: StringThe id of this client. If this is was registered at a Registrar, this should be a key
to the instance.
redirect_uri: StringThe 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§
Source§impl StringfiedEncodedClient
impl StringfiedEncodedClient
pub fn to_encoded_client(&self) -> Result<EncodedClient>
pub fn from_encoded_client(encoded_client: &EncodedClient) -> Self
Trait Implementations§
Source§impl Clone for StringfiedEncodedClient
impl Clone for StringfiedEncodedClient
Source§fn clone(&self) -> StringfiedEncodedClient
fn clone(&self) -> StringfiedEncodedClient
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 StringfiedEncodedClient
impl Debug for StringfiedEncodedClient
Source§impl<'de> Deserialize<'de> for StringfiedEncodedClient
impl<'de> Deserialize<'de> for StringfiedEncodedClient
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 StringfiedEncodedClient
impl RefUnwindSafe for StringfiedEncodedClient
impl Send for StringfiedEncodedClient
impl Sync for StringfiedEncodedClient
impl Unpin for StringfiedEncodedClient
impl UnwindSafe for StringfiedEncodedClient
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