#[non_exhaustive]pub struct OpenidConnectTokenRequest {
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub code: Option<String>,
pub redirect_uri: Option<String>,
pub grant_type: Option<String>,
pub refresh_token: Option<String>,
pub code_verifier: Option<String>,
}Expand description
Arguments for the Slack Web API method openid.connect.token: Exchanges a temporary OAuth verifier code for an access token for Sign in with Slack.
Send it with SlackClient::openid_connect_token.
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.client_id: Option<String>Issued when you created your application.
client_secret: Option<String>Issued when you created your application.
code: Option<String>The code param returned via the OAuth callback.
redirect_uri: Option<String>This must match the originally submitted URI (if one was sent).
grant_type: Option<String>The grant_type param as described in the OAuth spec.
refresh_token: Option<String>The refresh_token param as described in the OAuth spec.
code_verifier: Option<String>PKCE code verifier (RFC 7636). Required when the authorization request included a code_challenge.
Implementations§
Source§impl OpenidConnectTokenRequest
impl OpenidConnectTokenRequest
pub fn new() -> Self
pub fn client_id(self, client_id: impl Into<String>) -> Self
pub fn client_secret(self, client_secret: impl Into<String>) -> Self
pub fn code(self, code: impl Into<String>) -> Self
pub fn redirect_uri(self, redirect_uri: impl Into<String>) -> Self
pub fn grant_type(self, grant_type: impl Into<String>) -> Self
pub fn refresh_token(self, refresh_token: impl Into<String>) -> Self
pub fn code_verifier(self, code_verifier: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for OpenidConnectTokenRequest
impl Clone for OpenidConnectTokenRequest
Source§impl Debug for OpenidConnectTokenRequest
impl Debug for OpenidConnectTokenRequest
Source§impl Default for OpenidConnectTokenRequest
impl Default for OpenidConnectTokenRequest
impl StructuralPartialEq for OpenidConnectTokenRequest
Auto Trait Implementations§
impl Freeze for OpenidConnectTokenRequest
impl RefUnwindSafe for OpenidConnectTokenRequest
impl Send for OpenidConnectTokenRequest
impl Sync for OpenidConnectTokenRequest
impl Unpin for OpenidConnectTokenRequest
impl UnsafeUnpin for OpenidConnectTokenRequest
impl UnwindSafe for OpenidConnectTokenRequest
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