pub enum RegistrationPlan {
Reuse(RegisteredClient),
FetchDocument {
client_id: ClientId,
fallback: Option<ClientMetadata>,
},
RegisterDynamic {
metadata: ClientMetadata,
},
}Expand description
What plan_registration decided.
Variants§
Reuse(RegisteredClient)
Use this credential; nothing needs to be fetched.
The stored value is returned rather than re-registered. That is the
whole point of a stored credential: 2026-07-28 §9 binds it to its
issuer precisely so it can be reused.
FetchDocument
Fetch the metadata document at this URL.
fallback is what to register dynamically with if the fetch fails and
the revision still allows RFC 7591. It is None when the client has no
metadata to fall back on, or when the revision does not permit dynamic
registration at all.
Fields
§
fallback: Option<ClientMetadata>What to register with instead, if the fetch fails.
RegisterDynamic
Register dynamically with this metadata.
Fields
§
metadata: ClientMetadataThe metadata to present.
Trait Implementations§
Source§impl Clone for RegistrationPlan
impl Clone for RegistrationPlan
Source§impl Debug for RegistrationPlan
impl Debug for RegistrationPlan
impl Eq for RegistrationPlan
Source§impl PartialEq for RegistrationPlan
impl PartialEq for RegistrationPlan
impl StructuralPartialEq for RegistrationPlan
Auto Trait Implementations§
impl Freeze for RegistrationPlan
impl RefUnwindSafe for RegistrationPlan
impl Send for RegistrationPlan
impl Sync for RegistrationPlan
impl Unpin for RegistrationPlan
impl UnsafeUnpin for RegistrationPlan
impl UnwindSafe for RegistrationPlan
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