pub struct ServerConfig {
pub api_url: String,
pub auth_token: String,
}Expand description
External server configuration for report submission.
This structure contains the connection parameters for external reporting systems that can receive work time reports and task summaries. It supports custom company APIs or third-party time tracking services that accept HTTP-based report submissions.
§Security Considerations
- API URLs should use HTTPS in production environments
- Auth tokens are stored in plain text in configuration files
- Consider using environment variables for sensitive tokens in production
Fields§
§api_url: StringBase URL of the external reporting API server.
This should be the root URL of the API endpoint that accepts report submissions. The actual report endpoints will be constructed by appending specific paths to this base URL.
Example: https://api.company.com/timetracking
auth_token: StringAuthentication token for API access.
This token is included in HTTP headers when submitting reports to authenticate the client with the external server. The token format and authentication scheme depend on the target API’s requirements (Bearer tokens, API keys, etc.).
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more