pub struct AppContextBuilder { /* private fields */ }Expand description
Assembles an AppContext, owning the bootstrap order described on the
module.
All fields default to a no-op build: extensions are discovered via
inventory, schema installation is off, and the marketplace filter falls
back to the inventory-registered implementation (or an allow-all filter).
Override these with the with_* methods before calling
build.
Implementations§
Source§impl AppContextBuilder
impl AppContextBuilder
pub fn new() -> Self
pub fn with_extensions(self, registry: ExtensionRegistry) -> Self
pub const fn with_startup_warnings(self, show: bool) -> Self
pub fn with_marketplace_filter(self, filter: Arc<dyn MarketplaceFilter>) -> Self
pub const fn with_migrations(self, install: bool) -> Self
pub fn with_authz_hook<H>(self, hook: H) -> Selfwhere
H: AuthzDecisionHook + 'static,
pub const fn with_migration_config(self, config: MigrationConfig) -> Self
pub async fn build(self) -> RuntimeResult<AppContext>
Trait Implementations§
Source§impl Debug for AppContextBuilder
impl Debug for AppContextBuilder
Source§impl Default for AppContextBuilder
impl Default for AppContextBuilder
Source§fn default() -> AppContextBuilder
fn default() -> AppContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AppContextBuilder
impl !UnwindSafe for AppContextBuilder
impl Freeze for AppContextBuilder
impl Send for AppContextBuilder
impl Sync for AppContextBuilder
impl Unpin for AppContextBuilder
impl UnsafeUnpin for AppContextBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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