pub struct NewClientParams<'a> {Show 14 fields
pub client_id: &'a str,
pub client_name: &'a str,
pub application_type: ApplicationType,
pub token_endpoint_auth_method: TokenEndpointAuthMethod,
pub client_secret: Option<&'a Digest>,
pub client_secret_expires_at: Option<DateTime<Utc>>,
pub redirect_uris: &'a [String],
pub post_logout_redirect_uris: Option<&'a [String]>,
pub allowed_grant_types: &'a [GrantTypeName],
pub scopes: &'a [String],
pub require_pkce: bool,
pub pkce_methods_allowed: &'a [PkceMethod],
pub origin: &'a str,
pub bearer_allowed: bool,
}Fields§
§client_id: &'a str§client_name: &'a str§application_type: ApplicationType§token_endpoint_auth_method: TokenEndpointAuthMethod§client_secret: Option<&'a Digest>§client_secret_expires_at: Option<DateTime<Utc>>§redirect_uris: &'a [String]§post_logout_redirect_uris: Option<&'a [String]>§allowed_grant_types: &'a [GrantTypeName]§scopes: &'a [String]§require_pkce: bool§pkce_methods_allowed: &'a [PkceMethod]§origin: &'a str§bearer_allowed: boolImplementations§
Source§impl<'a> NewClientParams<'a>
impl<'a> NewClientParams<'a>
Sourcepub fn validate(&self) -> ModelResult<()>
pub fn validate(&self) -> ModelResult<()>
Lightweight pre-DB checks (DB constraints still enforce policy).
Trait Implementations§
Source§impl<'a> Clone for NewClientParams<'a>
impl<'a> Clone for NewClientParams<'a>
Source§fn clone(&self) -> NewClientParams<'a>
fn clone(&self) -> NewClientParams<'a>
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<'a> Freeze for NewClientParams<'a>
impl<'a> RefUnwindSafe for NewClientParams<'a>
impl<'a> Send for NewClientParams<'a>
impl<'a> Sync for NewClientParams<'a>
impl<'a> Unpin for NewClientParams<'a>
impl<'a> UnwindSafe for NewClientParams<'a>
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