[][src]Struct df_st_core::config::RootConfig

pub struct RootConfig {
    pub local_address: String,
    pub server: ServerConfig,
    pub database: DatabaseConfig,
}

The top level of the config file of df_storyteller-config.json

Fields

local_address: String

IP on your local network (NAT). Usually something like "192.168.0.2". Other NAT subnets are: "10.0.0.2" or "172.16.0.2" You can find this address by searching a guide using the term "private ip". This is necessary if you want to access the API from other devices. Default is "127.0.0.1". A domain name is also allowed: "example.com" or "localhost"

server: ServerConfig

Configuration of the server.

database: DatabaseConfig

Configuration of the database.

Trait Implementations

impl Clone for RootConfig[src]

impl Debug for RootConfig[src]

impl Default for RootConfig[src]

impl<'de> Deserialize<'de> for RootConfig[src]

impl PartialEq<RootConfig> for RootConfig[src]

impl Serialize for RootConfig[src]

impl StructuralPartialEq for RootConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for RootConfig

impl Send for RootConfig

impl Sync for RootConfig

impl Unpin for RootConfig

impl UnwindSafe for RootConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.