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.

Reverse lookup a property using an extractor.

Assume profile is valid and exists.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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