Struct telescope::env::TelescopeConfig [−][src]
struct TelescopeConfig {
log_level: Option<String>,
github_credentials: Option<GithubOauthConfig>,
discord_config: Option<DiscordConfig>,
api_url: Option<String>,
jwt_secret: Option<String>,
profile: Option<HashMap<String, TelescopeConfig>>,
telescope_url: Option<String>,
}
Expand description
The config of the server instance.
Fields
log_level: Option<String>
Set the log level. See https://docs.rs/env_logger/0.8.1/env_logger/ for reference.
github_credentials: Option<GithubOauthConfig>
GitHub OAuth application credentials.
discord_config: Option<DiscordConfig>
Discord application config and credentials.
api_url: Option<String>
The URL of the RCOS central API (in the OpenAPI Spec via RCOS-data).
jwt_secret: Option<String>
The JWT secret used to authenticate with the central API.
profile: Option<HashMap<String, TelescopeConfig>>
Profiles. These can be used and specified at runtime to override values defined globally. Profiles are scoped and can have sub profiles.
telescope_url: Option<String>
The URL that Telescope is running at. This is used in Discord embeds and the Open Graph Protocol meta tags. Should not end with a slash.
Implementations
Make the profile concrete by reverse searching profiles.
Trait Implementations
Returns the “default value” for a type. Read more
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 TelescopeConfig
impl Send for TelescopeConfig
impl Sync for TelescopeConfig
impl Unpin for TelescopeConfig
impl UnwindSafe for TelescopeConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more