pub struct PrivateClient {
pub id: String,
pub name: String,
pub redirect_uris: Vec<String>,
pub secret: String,
}
Available on crate feature
dex
only.Expand description
Definition of an OpenID client application.
Fields§
§id: String
Unique identifier of the client.
name: String
Display name of the client
redirect_uris: Vec<String>
Allowed redirect
secret: String
Cleartext secret that the client application authenticates against Dex with.
Implementations§
Source§impl PrivateClient
impl PrivateClient
Sourcepub fn simple_client() -> Self
pub fn simple_client() -> Self
Creates a preconfigured client.
Trait Implementations§
Source§impl Clone for PrivateClient
impl Clone for PrivateClient
Source§fn clone(&self) -> PrivateClient
fn clone(&self) -> PrivateClient
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for PrivateClient
impl RefUnwindSafe for PrivateClient
impl Send for PrivateClient
impl Sync for PrivateClient
impl Unpin for PrivateClient
impl UnwindSafe for PrivateClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more