pub struct KontextDevConfig {Show 13 fields
pub server: Option<String>,
pub mcp_url: Option<String>,
pub token_url: Option<String>,
pub client_id: String,
pub client_secret: Option<String>,
pub scope: String,
pub server_name: String,
pub resource: String,
pub integration_ui_url: Option<String>,
pub integration_return_to: Option<String>,
pub open_connect_page_on_login: bool,
pub auth_timeout_seconds: i64,
pub token_cache_path: Option<String>,
}Expand description
Configuration for the Kontext-Dev Rust SDK.
New-style runtime configuration uses server with PKCE + token exchange.
Legacy fields (mcp_url, token_url, client_secret) are still accepted
for backward compatibility and migration.
Fields§
§server: Option<String>Base API origin (for example: https://api.kontext.dev).
If not set, the SDK falls back to deriving the origin from mcp_url
or token_url.
mcp_url: Option<String>Optional explicit MCP gateway URL. Legacy field that is still supported.
token_url: Option<String>Optional explicit OAuth token endpoint URL. Legacy field that is still supported.
client_id: StringOAuth client id.
client_secret: Option<String>Optional OAuth client secret (for confidential clients).
scope: StringRequested OAuth scopes for authorization.
server_name: StringName used when registering this server in clients.
resource: StringDefault resource identifier for RFC 8693 token exchange.
integration_ui_url: Option<String>Optional hosted connect UI URL (for example: https://app.kontext.dev).
integration_return_to: Option<String>Optional return URL for per-integration OAuth flows.
open_connect_page_on_login: boolIf true, SDK consumers may open the connect page after login.
auth_timeout_seconds: i64OAuth callback wait timeout in seconds.
token_cache_path: Option<String>Optional token cache path for persisted login state.
Trait Implementations§
Source§impl Clone for KontextDevConfig
impl Clone for KontextDevConfig
Source§fn clone(&self) -> KontextDevConfig
fn clone(&self) -> KontextDevConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more