pub struct ServerConfigBuilder {
pub database_url: String,
pub oauth_application_id: String,
pub oauth_secret: String,
pub auth_url: Url,
pub icu4x_postcard_path: String,
pub file_store: Arc<dyn FileStore + Send + Sync>,
pub app_conf: ApplicationConfiguration,
pub redis_url: String,
pub jwt_password: String,
}
Fields§
§database_url: String
§oauth_application_id: String
§oauth_secret: String
§auth_url: Url
§icu4x_postcard_path: String
§file_store: Arc<dyn FileStore + Send + Sync>
§app_conf: ApplicationConfiguration
§redis_url: String
§jwt_password: String
Implementations§
Source§impl ServerConfigBuilder
impl ServerConfigBuilder
pub fn try_from_env() -> Result<Self>
pub async fn build(self) -> Result<ServerConfig>
Auto Trait Implementations§
impl Freeze for ServerConfigBuilder
impl !RefUnwindSafe for ServerConfigBuilder
impl Send for ServerConfigBuilder
impl Sync for ServerConfigBuilder
impl Unpin for ServerConfigBuilder
impl !UnwindSafe for ServerConfigBuilder
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