Struct atomic_server_lib::config::Config
source · pub struct Config {
pub server_url: String,
pub opts: Opts,
pub config_dir: PathBuf,
pub key_path: PathBuf,
pub cert_path: PathBuf,
pub https_path: PathBuf,
pub config_file_path: PathBuf,
pub static_path: PathBuf,
pub store_path: PathBuf,
pub uploads_path: PathBuf,
pub search_index_path: PathBuf,
pub initialize: bool,
}
Expand description
Configuration for the server. These values are set when the server initializes, and do not change while running. These are constructed from Opts, which in turn are constructed from CLI arguments and ENV variables.
Fields§
§server_url: String
Full domain + schema, e.g. https://example.com
. Is either generated from domain
and schema
, or is the custom_server_url
.
opts: Opts
CLI + ENV options
config_dir: PathBuf
Path for atomic data config. Used to construct most other paths.
key_path: PathBuf
Path where TLS key should be stored for HTTPS.
cert_path: PathBuf
Path where TLS certificate should be stored for HTTPS.
https_path: PathBuf
Path where TLS certificates should be stored for HTTPS.
config_file_path: PathBuf
Path where config.toml is located, which contains info about the Agent
static_path: PathBuf
Path where the public static files folder is located
store_path: PathBuf
Path to where the store / database is located.
uploads_path: PathBuf
Path to where the uploaded files are stored.
search_index_path: PathBuf
Path to where the search index for tantivy full text search is located
initialize: bool
If true, the initialization scripts will be ran (create first Drive, Agent, indexing, etc)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.