Struct torrust_index_backend::config::TorrustBackend
source · pub struct TorrustBackend {
pub log_level: Option<String>,
pub website: Website,
pub tracker: Tracker,
pub net: Network,
pub auth: Auth,
pub database: Database,
pub mail: Mail,
pub image_cache: ImageCache,
pub api: Api,
pub tracker_statistics_importer: TrackerStatisticsImporter,
}
Expand description
The whole configuration for the backend.
Fields§
§log_level: Option<String>
Logging level. Possible values are: Off
, Error
, Warn
, Info
,
Debug
and Trace
. Default is Info
.
website: Website
The website customizable values.
tracker: Tracker
The tracker configuration.
net: Network
The network configuration.
auth: Auth
The authentication configuration.
database: Database
The database configuration.
mail: Mail
The SMTP configuration.
image_cache: ImageCache
The image proxy cache configuration.
api: Api
The API configuration.
tracker_statistics_importer: TrackerStatisticsImporter
The tracker statistics importer job configuration.
Trait Implementations§
source§impl Clone for TorrustBackend
impl Clone for TorrustBackend
source§fn clone(&self) -> TorrustBackend
fn clone(&self) -> TorrustBackend
Returns a copy 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 TorrustBackend
impl Debug for TorrustBackend
source§impl Default for TorrustBackend
impl Default for TorrustBackend
source§fn default() -> TorrustBackend
fn default() -> TorrustBackend
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TorrustBackend
impl<'de> Deserialize<'de> for TorrustBackend
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 TorrustBackend
impl Send for TorrustBackend
impl Sync for TorrustBackend
impl Unpin for TorrustBackend
impl UnwindSafe for TorrustBackend
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