pub struct RootConfig {
pub local_address: String,
pub server: ServerConfig,
pub database: DatabaseConfig,
}Expand description
The top level of the config file of df_storyteller-config.json
Fields§
§local_address: StringIP 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: ServerConfigConfiguration of the server.
database: DatabaseConfigConfiguration of the database.
Trait Implementations§
Source§impl Clone for RootConfig
impl Clone for RootConfig
Source§fn clone(&self) -> RootConfig
fn clone(&self) -> RootConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RootConfig
impl Debug for RootConfig
Source§impl Default for RootConfig
impl Default for RootConfig
Source§impl<'de> Deserialize<'de> for RootConfig
impl<'de> Deserialize<'de> for RootConfig
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
Source§impl PartialEq for RootConfig
impl PartialEq for RootConfig
Source§impl Serialize for RootConfig
impl Serialize for RootConfig
impl StructuralPartialEq for RootConfig
Auto Trait Implementations§
impl Freeze for RootConfig
impl RefUnwindSafe for RootConfig
impl Send for RootConfig
impl Sync for RootConfig
impl Unpin for RootConfig
impl UnwindSafe for RootConfig
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