pub struct ValidatedEndpoints {
pub authorize: ValidatedEndpoint,
pub token: ValidatedEndpoint,
pub userinfo: ValidatedEndpoint,
}Expand description
A provider’s three endpoints, resolved and validated. Produced by
ValidatedEndpoints::resolve — registry values by default, validated
overrides where present. The sole endpoint currency the OAuth flow and the
refresh scheduler deal in.
Fields§
§token: ValidatedEndpoint§userinfo: ValidatedEndpointImplementations§
Source§impl ValidatedEndpoints
impl ValidatedEndpoints
Sourcepub fn resolve(
registry: &ProviderRegistry,
provider: &str,
overrides: &EndpointOverrides,
) -> Result<Self, InvalidEndpoint>
pub fn resolve( registry: &ProviderRegistry, provider: &str, overrides: &EndpointOverrides, ) -> Result<Self, InvalidEndpoint>
Resolve one provider’s endpoints: registry defaults unless a
configuration override is present; EVERY value (registry or override)
passes validate_endpoint. Any rejection propagates — the caller
building the module refuses to build.
Trait Implementations§
Source§impl Clone for ValidatedEndpoints
impl Clone for ValidatedEndpoints
Auto Trait Implementations§
impl Freeze for ValidatedEndpoints
impl RefUnwindSafe for ValidatedEndpoints
impl Send for ValidatedEndpoints
impl Sync for ValidatedEndpoints
impl Unpin for ValidatedEndpoints
impl UnsafeUnpin for ValidatedEndpoints
impl UnwindSafe for ValidatedEndpoints
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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