pub struct CachedProvider {Show 20 fields
pub name: String,
pub provider_type: String,
pub base_url: String,
pub auth_type: String,
pub auth_key_name: Option<String>,
pub auth_header_name: Option<String>,
pub auth_query_name: Option<String>,
pub spec_content: Option<String>,
pub mcp_transport: Option<String>,
pub mcp_url: Option<String>,
pub mcp_command: Option<String>,
pub mcp_args: Vec<String>,
pub mcp_env: HashMap<String, String>,
pub cli_command: Option<String>,
pub cli_default_args: Vec<String>,
pub cli_env: HashMap<String, String>,
pub cli_timeout_secs: Option<u64>,
pub auth: Option<String>,
pub created_at: String,
pub ttl_seconds: u64,
}Expand description
A cached (ephemeral) provider, persisted as JSON in $ATI_DIR/cache/providers/<name>.json.
Used by ati provider load to make providers available across process invocations
without writing permanent TOML manifests.
Fields§
§name: String§provider_type: String“openapi” or “mcp”
base_url: String§auth_type: String§auth_key_name: Option<String>§auth_header_name: Option<String>§auth_query_name: Option<String>§spec_content: Option<String>§mcp_transport: Option<String>§mcp_url: Option<String>§mcp_command: Option<String>§mcp_args: Vec<String>§mcp_env: HashMap<String, String>§cli_command: Option<String>§cli_default_args: Vec<String>§cli_env: HashMap<String, String>§cli_timeout_secs: Option<u64>§auth: Option<String>§created_at: String§ttl_seconds: u64Implementations§
Source§impl CachedProvider
impl CachedProvider
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Returns true if this cached provider has expired.
Sourcepub fn expires_at(&self) -> Option<String>
pub fn expires_at(&self) -> Option<String>
Returns the expiry time as an ISO timestamp.
Sourcepub fn remaining_seconds(&self) -> u64
pub fn remaining_seconds(&self) -> u64
Returns remaining TTL in seconds (0 if expired).
Sourcepub fn to_provider(&self) -> Provider
pub fn to_provider(&self) -> Provider
Build a Provider struct from this cached entry.
Trait Implementations§
Source§impl Clone for CachedProvider
impl Clone for CachedProvider
Source§fn clone(&self) -> CachedProvider
fn clone(&self) -> CachedProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CachedProvider
impl Debug for CachedProvider
Source§impl<'de> Deserialize<'de> for CachedProvider
impl<'de> Deserialize<'de> for CachedProvider
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CachedProvider
impl RefUnwindSafe for CachedProvider
impl Send for CachedProvider
impl Sync for CachedProvider
impl Unpin for CachedProvider
impl UnsafeUnpin for CachedProvider
impl UnwindSafe for CachedProvider
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