pub struct KickOptions {
pub client_id: String,
pub client_secret: Option<String>,
pub client_key: Option<String>,
pub scope: Vec<String>,
pub disable_default_scope: bool,
pub authorization_endpoint: Option<String>,
pub redirect_uri: Option<String>,
pub user_info_endpoint: Option<String>,
pub map_profile_to_user: Option<fn(Value) -> Result<OAuthUserInfo, String>>,
}Expand description
Application-owned Kick configuration. Generic signup and asynchronous user-info/refresh callbacks remain configurable on the returned provider.
Fields§
§client_id: String§client_secret: Option<String>§client_key: Option<String>Sent only during authorization-code exchange.
scope: Vec<String>§disable_default_scope: bool§redirect_uri: Option<String>§user_info_endpoint: Option<String>Trusted transport override retaining Kick’s actual GET and mapping.
map_profile_to_user: Option<fn(Value) -> Result<OAuthUserInfo, String>>Receives the original profile before its raw account identity is resolved.
Implementations§
Trait Implementations§
Source§impl Clone for KickOptions
impl Clone for KickOptions
Auto Trait Implementations§
impl Freeze for KickOptions
impl RefUnwindSafe for KickOptions
impl Send for KickOptions
impl Sync for KickOptions
impl Unpin for KickOptions
impl UnsafeUnpin for KickOptions
impl UnwindSafe for KickOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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