pub enum ClientRegistrationMethod {
None,
ClientId(ClientId),
Metadata(Raw<ClientMetadata>),
Store(OAuthRegistrationStore),
}
Expand description
The available methods to register or restore a client.
Variants§
None
No registration will be done.
This should only be set if OAuth::register_client()
or
OAuth::restore_registered_client()
was already called before.
ClientId(ClientId)
The given client ID will be used.
This will call OAuth::restore_registered_client()
internally.
Metadata(Raw<ClientMetadata>)
The client will register using dynamic client registration, with the given metadata.
This will call OAuth::register_client()
internally.
Store(OAuthRegistrationStore)
Available on non-WebAssembly only.
Use an OAuthRegistrationStore
to handle registrations.
Trait Implementations§
Source§impl Debug for ClientRegistrationMethod
impl Debug for ClientRegistrationMethod
Source§impl From<ClientId> for ClientRegistrationMethod
impl From<ClientId> for ClientRegistrationMethod
Source§impl From<OAuthRegistrationStore> for ClientRegistrationMethod
Available on non-WebAssembly only.
impl From<OAuthRegistrationStore> for ClientRegistrationMethod
Available on non-WebAssembly only.
Source§fn from(value: OAuthRegistrationStore) -> Self
fn from(value: OAuthRegistrationStore) -> Self
Converts to this type from the input type.
Source§impl From<Raw<ClientMetadata>> for ClientRegistrationMethod
impl From<Raw<ClientMetadata>> for ClientRegistrationMethod
Source§fn from(value: Raw<ClientMetadata>) -> Self
fn from(value: Raw<ClientMetadata>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientRegistrationMethod
impl RefUnwindSafe for ClientRegistrationMethod
impl Send for ClientRegistrationMethod
impl Sync for ClientRegistrationMethod
impl Unpin for ClientRegistrationMethod
impl UnwindSafe for ClientRegistrationMethod
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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