pub struct BloomApplication { /* private fields */ }
Expand description
Application builder for configuring and creating Bloom applications.
This struct provides a fluent API for configuring the Bloom web application with various settings like database URL, port, and feature flags.
Implementations§
Source§impl BloomApplication
impl BloomApplication
Sourcepub fn new() -> BloomApplication
pub fn new() -> BloomApplication
Creates a new BloomApplication with default configuration.
§Returns
Self
- A new BloomApplication instance with default settings
Sourcepub fn with_config(self, config: BloomConfig) -> BloomApplication
pub fn with_config(self, config: BloomConfig) -> BloomApplication
Sourcepub fn with_database_url(self, url: &str) -> BloomApplication
pub fn with_database_url(self, url: &str) -> BloomApplication
Auto Trait Implementations§
impl Freeze for BloomApplication
impl RefUnwindSafe for BloomApplication
impl Send for BloomApplication
impl Sync for BloomApplication
impl Unpin for BloomApplication
impl UnwindSafe for BloomApplication
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
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