pub struct NotionOptions {
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 Notion 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 Notion’s versioned 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 NotionOptions
impl Clone for NotionOptions
Auto Trait Implementations§
impl Freeze for NotionOptions
impl RefUnwindSafe for NotionOptions
impl Send for NotionOptions
impl Sync for NotionOptions
impl Unpin for NotionOptions
impl UnsafeUnpin for NotionOptions
impl UnwindSafe for NotionOptions
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