pub struct IntegrationsModuleBuilder { /* private fields */ }Expand description
Builder for IntegrationsModule
Implementations§
Source§impl IntegrationsModuleBuilder
impl IntegrationsModuleBuilder
Sourcepub fn with_database(self, pool: PgPool) -> Self
pub fn with_database(self, pool: PgPool) -> Self
Set the database connection pool
Sourcepub fn with_oauth(self, config: IntegrationsOauthConfig) -> Self
pub fn with_oauth(self, config: IntegrationsOauthConfig) -> Self
Opt the module into the one OAuth generation. The config carries the deployment’s public base, per-provider clients, and endpoint overrides — every override passes the endpoint guard at build time (a bad one fails the build), and the state-signing key is read from the environment variable the config names (never a file value).
Sourcepub fn with_oauth_transport(self, transport: Arc<dyn OAuthTransport>) -> Self
pub fn with_oauth_transport(self, transport: Arc<dyn OAuthTransport>) -> Self
The outbound OAuth transport (token exchange + server-side identity
read). Defaults to ReqwestOAuthTransport when omitted.
Sourcepub fn with_oauth_store(self, store: Arc<dyn OAuthCredentialStore>) -> Self
pub fn with_oauth_store(self, store: Arc<dyn OAuthCredentialStore>) -> Self
Bind the credential store through the port (ADR-0024 amendment: no Cargo edge — the host adapts its store onto these verbs).
Sourcepub fn build(self) -> Result<IntegrationsModule>
pub fn build(self) -> Result<IntegrationsModule>
Build the module with configured dependencies
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for IntegrationsModuleBuilder
impl !UnwindSafe for IntegrationsModuleBuilder
impl Freeze for IntegrationsModuleBuilder
impl Send for IntegrationsModuleBuilder
impl Sync for IntegrationsModuleBuilder
impl Unpin for IntegrationsModuleBuilder
impl UnsafeUnpin for IntegrationsModuleBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more