pub struct EngineState {
pub version: String,
pub inference_base_url: String,
pub inference_model: String,
pub has_api_key: bool,
pub endpoint: Option<String>,
pub busy: bool,
pub endpoint_info: Option<EndpointInfo>,
pub link: Link,
pub onboarded: bool,
pub detected: Vec<Detected>,
pub detecting: bool,
pub chat_endpoint: Option<ChatEndpoint>,
}Expand description
What clients may know about the engine. Secrets (API keys) never leave the engine.
Fields§
§version: String§inference_base_url: String§inference_model: String§has_api_key: bool§endpoint: Option<String>Resolved chat/completions URL, if the base URL is valid.
busy: boolA turn is running in the chat this client is looking at.
endpoint_info: Option<EndpointInfo>What the engine knows about the inference endpoint (from its capability probe).
link: LinkWhether the current endpoint answers.
onboarded: boolAn endpoint has worked before (saved in settings.json): returning users skip the welcome screen.
detected: Vec<Detected>Inference servers found on this machine’s usual ports.
detecting: boolThe engine is looking for them.
chat_endpoint: Option<ChatEndpoint>The chat in view uses another endpoint than the one above (its workspace’s or its
own); None: it uses the global one.
Trait Implementations§
Source§impl Clone for EngineState
impl Clone for EngineState
Source§impl Debug for EngineState
impl Debug for EngineState
Source§impl Default for EngineState
impl Default for EngineState
Source§impl<'de> Deserialize<'de> for EngineState
impl<'de> Deserialize<'de> for EngineState
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
Source§impl PartialEq for EngineState
impl PartialEq for EngineState
Source§impl Serialize for EngineState
impl Serialize for EngineState
impl StructuralPartialEq for EngineState
Auto Trait Implementations§
impl Forget for EngineState
impl Freeze for EngineState
impl Move for EngineState
impl RefUnwindSafe for EngineState
impl Send for EngineState
impl Sync for EngineState
impl Unpin for EngineState
impl UnsafeUnpin for EngineState
impl UnwindSafe for EngineState
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