pub struct Config {Show 39 fields
pub instance_id: String,
pub max_concurrent_streams: usize,
pub sitename: String,
pub database_type: String,
pub database_url: String,
pub database_write_url: Option<String>,
pub github_link: String,
pub github_token: Option<String>,
pub system_path: String,
pub services_path: String,
pub bin_path: String,
pub skills_path: String,
pub settings_path: String,
pub content_config_path: String,
pub geoip_database_path: Option<String>,
pub web_path: String,
pub web_config_path: String,
pub web_metadata_path: String,
pub host: String,
pub port: u16,
pub api_server_url: String,
pub api_internal_url: String,
pub api_external_url: String,
pub jwt_issuer: String,
pub jwt_access_token_expiration: i64,
pub jwt_refresh_token_expiration: i64,
pub jwt_audiences: Vec<JwtAudience>,
pub allowed_resource_audiences: Vec<String>,
pub trusted_issuers: Vec<TrustedIssuer>,
pub signing_key_path: PathBuf,
pub use_https: bool,
pub rate_limits: RateLimitConfig,
pub cors_allowed_origins: Vec<String>,
pub trusted_proxies: Vec<String>,
pub is_cloud: bool,
pub content_negotiation: ContentNegotiationConfig,
pub security_headers: SecurityHeadersConfig,
pub allow_registration: bool,
pub system_admin_username: String,
}Fields§
§instance_id: String§max_concurrent_streams: usize§sitename: String§database_type: String§database_url: String§database_write_url: Option<String>§github_link: String§github_token: Option<String>§system_path: String§services_path: String§bin_path: String§skills_path: String§settings_path: String§content_config_path: String§geoip_database_path: Option<String>§web_path: String§web_config_path: String§web_metadata_path: String§host: String§port: u16§api_server_url: String§api_internal_url: String§api_external_url: String§jwt_issuer: String§jwt_access_token_expiration: i64§jwt_refresh_token_expiration: i64§jwt_audiences: Vec<JwtAudience>§allowed_resource_audiences: Vec<String>§trusted_issuers: Vec<TrustedIssuer>§signing_key_path: PathBuf§use_https: bool§rate_limits: RateLimitConfig§cors_allowed_origins: Vec<String>§trusted_proxies: Vec<String>§is_cloud: bool§content_negotiation: ContentNegotiationConfig§security_headers: SecurityHeadersConfig§allow_registration: bool§system_admin_username: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more