pub struct PolarOptions {
pub client_id: String,
pub client_secret: Option<String>,
pub client_key: Option<String>,
pub scope: Vec<String>,
pub prompt: Option<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 Polar 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>§prompt: Option<String>§disable_default_scope: bool§redirect_uri: Option<String>§user_info_endpoint: Option<String>Trusted transport override retaining Polar’s bearer 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 PolarOptions
impl Clone for PolarOptions
Auto Trait Implementations§
impl Freeze for PolarOptions
impl RefUnwindSafe for PolarOptions
impl Send for PolarOptions
impl Sync for PolarOptions
impl Unpin for PolarOptions
impl UnsafeUnpin for PolarOptions
impl UnwindSafe for PolarOptions
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