pub struct LanguageConfig;Expand description
Config-Integration für Language Management
Implementations§
Source§impl LanguageConfig
impl LanguageConfig
Sourcepub async fn set_in_config(config: &mut Config, lang: &str) -> Result<()>
pub async fn set_in_config(config: &mut Config, lang: &str) -> Result<()>
Setzt Sprache in bestehender Config-Instanz
Sourcepub async fn load_and_apply_from_config(config: &Config) -> Result<()>
pub async fn load_and_apply_from_config(config: &Config) -> Result<()>
Lädt Sprache aus Config und setzt i18n
Sourcepub async fn create_config_with_language(lang: &str) -> Result<Config>
pub async fn create_config_with_language(lang: &str) -> Result<Config>
Erstellt neue Config mit spezifischer Sprache
Sourcepub async fn sync_config_with_current_language() -> Result<()>
pub async fn sync_config_with_current_language() -> Result<()>
Synchronisiert Config-Datei mit aktueller i18n Sprache
Sourcepub fn is_config_in_sync_with_i18n(config: &Config) -> bool
pub fn is_config_in_sync_with_i18n(config: &Config) -> bool
Prüft ob Config und i18n synchron sind
Sourcepub async fn repair_config_sync(config: &mut Config) -> Result<bool>
pub async fn repair_config_sync(config: &mut Config) -> Result<bool>
Repariert Config falls sie nicht mit i18n synchron ist
Auto Trait Implementations§
impl Freeze for LanguageConfig
impl RefUnwindSafe for LanguageConfig
impl Send for LanguageConfig
impl Sync for LanguageConfig
impl Unpin for LanguageConfig
impl UnwindSafe for LanguageConfig
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> 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