pub struct BrowsrConfiguration {
pub name: String,
pub version: String,
pub browser: Option<BrowsrClientConfig>,
pub structured_model_settings: Option<Value>,
pub default_model_settings: Option<Value>,
}Expand description
Browsr-specific configuration from browsr.toml
Fields§
§name: String§version: String§browser: Option<BrowsrClientConfig>Browser-specific configuration
structured_model_settings: Option<Value>Model settings for structured extraction (analysis) - stored as JSON to avoid circular dependencies
default_model_settings: Option<Value>Default model settings for general use - stored as JSON to avoid circular dependencies
Implementations§
Source§impl BrowsrConfiguration
impl BrowsrConfiguration
Sourcepub async fn load_from_path<P: AsRef<Path>>(path: P) -> Result<Self>
pub async fn load_from_path<P: AsRef<Path>>(path: P) -> Result<Self>
Load configuration from a TOML file path
Trait Implementations§
Source§impl Clone for BrowsrConfiguration
impl Clone for BrowsrConfiguration
Source§fn clone(&self) -> BrowsrConfiguration
fn clone(&self) -> BrowsrConfiguration
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 BrowsrConfiguration
impl Debug for BrowsrConfiguration
Source§impl Default for BrowsrConfiguration
impl Default for BrowsrConfiguration
Source§impl<'de> Deserialize<'de> for BrowsrConfigurationwhere
BrowsrConfiguration: Default,
impl<'de> Deserialize<'de> for BrowsrConfigurationwhere
BrowsrConfiguration: Default,
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 BrowsrConfiguration
impl RefUnwindSafe for BrowsrConfiguration
impl Send for BrowsrConfiguration
impl Sync for BrowsrConfiguration
impl Unpin for BrowsrConfiguration
impl UnwindSafe for BrowsrConfiguration
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