pub struct ClientRegistrationRequestBuilder { /* private fields */ }Expand description
Builder for RFC 7591 client registration requests.
Implementations§
Source§impl ClientRegistrationRequestBuilder
impl ClientRegistrationRequestBuilder
Sourcepub fn redirect_uris<I, S>(self, redirect_uris: I) -> Self
pub fn redirect_uris<I, S>(self, redirect_uris: I) -> Self
Replace the redirect URI set.
Sourcepub fn auth_method(self, method: impl Into<String>) -> Self
pub fn auth_method(self, method: impl Into<String>) -> Self
Set the token endpoint authentication method.
Sourcepub fn public_client(self) -> Self
pub fn public_client(self) -> Self
Configure a public client.
Sourcepub fn grant_types<I, S>(self, grant_types: I) -> Self
pub fn grant_types<I, S>(self, grant_types: I) -> Self
Set the grant types.
Sourcepub fn response_types<I, S>(self, response_types: I) -> Self
pub fn response_types<I, S>(self, response_types: I) -> Self
Set the response types.
Sourcepub fn client_name(self, client_name: impl Into<String>) -> Self
pub fn client_name(self, client_name: impl Into<String>) -> Self
Set a human-readable client name.
Sourcepub fn client_uri(self, client_uri: impl Into<String>) -> Self
pub fn client_uri(self, client_uri: impl Into<String>) -> Self
Set common client metadata URLs.
Sourcepub fn policy_uri(self, policy_uri: impl Into<String>) -> Self
pub fn policy_uri(self, policy_uri: impl Into<String>) -> Self
Set the privacy-policy URI.
Sourcepub fn software(
self,
software_id: impl Into<String>,
software_version: impl Into<String>,
) -> Self
pub fn software( self, software_id: impl Into<String>, software_version: impl Into<String>, ) -> Self
Set the software metadata.
Sourcepub fn metadata(self, key: impl Into<String>, value: Value) -> Self
pub fn metadata(self, key: impl Into<String>, value: Value) -> Self
Add a custom metadata field.
Sourcepub fn build(self) -> ClientRegistrationRequest
pub fn build(self) -> ClientRegistrationRequest
Build the client registration request.
Auto Trait Implementations§
impl Freeze for ClientRegistrationRequestBuilder
impl RefUnwindSafe for ClientRegistrationRequestBuilder
impl Send for ClientRegistrationRequestBuilder
impl Sync for ClientRegistrationRequestBuilder
impl Unpin for ClientRegistrationRequestBuilder
impl UnsafeUnpin for ClientRegistrationRequestBuilder
impl UnwindSafe for ClientRegistrationRequestBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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