Struct tame_oidc::strict::ClientInfoStage
source · #[non_exhaustive]pub struct ClientInfoStage {
pub issuer_domain: String,
pub auth: ClientAuthentication,
pub redirect_uri: String,
pub scopes: Option<Vec<String>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.issuer_domain: String
§auth: ClientAuthentication
§redirect_uri: String
§scopes: Option<Vec<String>>
Implementations§
source§impl ClientInfoStage
impl ClientInfoStage
pub fn new( issuer_domain: String, auth: ClientAuthentication, redirect_uri: String, scopes: Option<Vec<String>> ) -> Self
pub fn generate_provider_request(&self) -> Result<Request<Vec<u8>>, Error>
pub fn validate_provider<S>( self, input: Response<S> ) -> Result<AuthorizationStage, Error>
pub async fn run_to_end<'a, ReqFn, ReqFut, S, AuthFut, U>( self, req_fn: ReqFn, auth_fut: AuthFut ) -> Result<Finalized<U>, Error>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ClientInfoStage
impl Send for ClientInfoStage
impl Sync for ClientInfoStage
impl Unpin for ClientInfoStage
impl UnwindSafe for ClientInfoStage
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