pub struct LangConfigBuilder { /* private fields */ }Expand description
Builder for LangConfig.
Unset fields fall back to environment variables (via from_env()).
Implementations§
Source§impl LangConfigBuilder
impl LangConfigBuilder
Sourcepub fn fallback_locale(self, fallback: impl Into<String>) -> Self
pub fn fallback_locale(self, fallback: impl Into<String>) -> Self
Set the fallback locale.
Sourcepub fn build(self) -> LangConfig
pub fn build(self) -> LangConfig
Build the LangConfig, filling unset fields from environment.
Trait Implementations§
Source§impl Default for LangConfigBuilder
impl Default for LangConfigBuilder
Source§fn default() -> LangConfigBuilder
fn default() -> LangConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LangConfigBuilder
impl RefUnwindSafe for LangConfigBuilder
impl Send for LangConfigBuilder
impl Sync for LangConfigBuilder
impl Unpin for LangConfigBuilder
impl UnsafeUnpin for LangConfigBuilder
impl UnwindSafe for LangConfigBuilder
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