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 moreSource§impl Debug for KontextDevConfig
impl Debug for KontextDevConfig
Source§impl<'de> Deserialize<'de> for KontextDevConfig
impl<'de> Deserialize<'de> for KontextDevConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KontextDevConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KontextDevConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for KontextDevConfig
impl PartialEq for KontextDevConfig
Source§impl Serialize for KontextDevConfig
impl Serialize for KontextDevConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for KontextDevConfig
impl StructuralPartialEq for KontextDevConfig
Auto Trait Implementations§
impl Freeze for KontextDevConfig
impl RefUnwindSafe for KontextDevConfig
impl Send for KontextDevConfig
impl Sync for KontextDevConfig
impl Unpin for KontextDevConfig
impl UnwindSafe for KontextDevConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.