Struct lexa_framework::server::settings::Settings
source · pub struct Settings {
pub host: IpAddr,
pub port: u16,
pub tls: Option<SettingsTLS>,
pub static_resources: Vec<SettingsStaticResource>,
}Fields§
§host: IpAddrNom d’hôte / IP de connexion du serveur.
port: u16Port de connexion du serveur.
tls: Option<SettingsTLS>Paramètres TLS.
static_resources: Vec<SettingsStaticResource>Implementations§
source§impl Settings
impl Settings
pub fn fetch_or_default( config_dir: &impl AsRef<Path>, file_extension: &SettingsLoaderExtension ) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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