pub struct ConfigApi { /* private fields */ }Expand description
Configuration API operations
Implementations§
Source§impl ConfigApi
impl ConfigApi
Sourcepub async fn update(
&self,
request: &UpdateAppConfigRequest,
) -> ApiResult<AppConfig>
pub async fn update( &self, request: &UpdateAppConfigRequest, ) -> ApiResult<AppConfig>
Update application configuration
Sourcepub async fn set_timeout(&self, timeout_secs: u64) -> ApiResult<AppConfig>
pub async fn set_timeout(&self, timeout_secs: u64) -> ApiResult<AppConfig>
Set default execution timeout
Sourcepub async fn set_max_concurrent(&self, max: usize) -> ApiResult<AppConfig>
pub async fn set_max_concurrent(&self, max: usize) -> ApiResult<AppConfig>
Set max concurrent executions
Sourcepub async fn set_history_enabled(&self, enabled: bool) -> ApiResult<AppConfig>
pub async fn set_history_enabled(&self, enabled: bool) -> ApiResult<AppConfig>
Enable or disable execution history
Sourcepub async fn set_max_history(&self, max: usize) -> ApiResult<AppConfig>
pub async fn set_max_history(&self, max: usize) -> ApiResult<AppConfig>
Set max history entries
Sourcepub async fn health(&self) -> ApiResult<HealthResponse>
pub async fn health(&self) -> ApiResult<HealthResponse>
Health check
Sourcepub async fn version(&self) -> ApiResult<VersionResponse>
pub async fn version(&self) -> ApiResult<VersionResponse>
Get version information
Sourcepub async fn is_healthy(&self) -> bool
pub async fn is_healthy(&self) -> bool
Check if the server is healthy
Sourcepub async fn validate_manifest(
&self,
content: &str,
) -> ApiResult<ValidateManifestResponse>
pub async fn validate_manifest( &self, content: &str, ) -> ApiResult<ValidateManifestResponse>
Validate a manifest without importing
Sourcepub async fn import_manifest(
&self,
content: &str,
merge: bool,
install: bool,
) -> ApiResult<ImportManifestResponse>
pub async fn import_manifest( &self, content: &str, merge: bool, install: bool, ) -> ApiResult<ImportManifestResponse>
Import a manifest configuration
Sourcepub async fn get_search_config(&self) -> ApiResult<SearchConfigResponse>
pub async fn get_search_config(&self) -> ApiResult<SearchConfigResponse>
Get search configuration
Sourcepub async fn update_search_config(
&self,
request: &UpdateSearchConfigRequest,
) -> ApiResult<SearchConfigResponse>
pub async fn update_search_config( &self, request: &UpdateSearchConfigRequest, ) -> ApiResult<SearchConfigResponse>
Update search configuration
Sourcepub async fn set_embedding_provider(
&self,
provider: &str,
model: Option<&str>,
) -> ApiResult<SearchConfigResponse>
pub async fn set_embedding_provider( &self, provider: &str, model: Option<&str>, ) -> ApiResult<SearchConfigResponse>
Set embedding provider
Sourcepub async fn set_hybrid_search(
&self,
enabled: bool,
) -> ApiResult<SearchConfigResponse>
pub async fn set_hybrid_search( &self, enabled: bool, ) -> ApiResult<SearchConfigResponse>
Enable or disable hybrid search
Sourcepub async fn set_reranking(
&self,
enabled: bool,
) -> ApiResult<SearchConfigResponse>
pub async fn set_reranking( &self, enabled: bool, ) -> ApiResult<SearchConfigResponse>
Enable or disable reranking
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigApi
impl RefUnwindSafe for ConfigApi
impl !Send for ConfigApi
impl !Sync for ConfigApi
impl Unpin for ConfigApi
impl UnwindSafe for ConfigApi
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.