pub struct GotifyConfig {
pub url: String,
pub client_token: String,
pub app_token: String,
pub request_timeout: Duration,
}Expand description
Gotify server connection config.
Debug redacts client_token and
app_token so this can’t leak into logs or traces
through an incidental {:?} — only each token’s length is shown.
Fields§
§url: StringServer base URL, e.g. https://gotify.example.com (GOTIFY_URL).
client_token: StringClient token for management operations: messages, applications,
clients, current user (GOTIFY_CLIENT_TOKEN). Create one under
Clients in the Gotify web UI. Empty means unconfigured — calls
that need it return crate::GotifyError::MissingClientToken.
app_token: StringApp token for sending messages (GOTIFY_APP_TOKEN). Distinct from
client_token — create one under Applications in the Gotify web
UI. Empty means unconfigured — crate::GotifyClient::send_message
returns crate::GotifyError::MissingAppToken.
request_timeout: DurationPer-request timeout, applied to the pooled reqwest::Client at
construction. Defaults to DEFAULT_REQUEST_TIMEOUT.
Trait Implementations§
Source§impl Clone for GotifyConfig
impl Clone for GotifyConfig
Source§fn clone(&self) -> GotifyConfig
fn clone(&self) -> GotifyConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more