pub struct VisionConfig {
pub provider: Option<String>,
pub api_key: Option<String>,
pub model: Option<String>,
pub endpoint: Option<String>,
pub agents: BTreeMap<String, AgentVisionConfig>,
}Fields§
§provider: Option<String>§api_key: Option<String>§model: Option<String>§endpoint: Option<String>§agents: BTreeMap<String, AgentVisionConfig>Implementations§
Source§impl VisionConfig
impl VisionConfig
pub fn agent_config(&self, agent_name: &str) -> Option<&AgentVisionConfig>
pub fn effective_provider(&self, agent_name: Option<&str>) -> Option<&str>
pub fn effective_model(&self, agent_name: Option<&str>) -> Option<&str>
pub fn effective_api_key(&self, agent_name: Option<&str>) -> Option<&str>
pub fn agent_mode(&self, agent_name: &str) -> Option<&str>
Trait Implementations§
Source§impl Clone for VisionConfig
impl Clone for VisionConfig
Source§fn clone(&self) -> VisionConfig
fn clone(&self) -> VisionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VisionConfig
impl Debug for VisionConfig
Source§impl Default for VisionConfig
impl Default for VisionConfig
Source§fn default() -> VisionConfig
fn default() -> VisionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VisionConfig
impl<'de> Deserialize<'de> for VisionConfig
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 VisionConfig
impl RefUnwindSafe for VisionConfig
impl Send for VisionConfig
impl Sync for VisionConfig
impl Unpin for VisionConfig
impl UnsafeUnpin for VisionConfig
impl UnwindSafe for VisionConfig
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