pub struct Settings {
pub config_path: String,
pub index_dir: Option<String>,
pub index_effective: String,
pub author_name: Option<String>,
pub author_effective: Option<String>,
pub record_names: bool,
pub llm_model: String,
pub defaults: Defaults,
pub llm_key: KeySource,
pub cache_ttl_secs: u64,
}Expand description
GET /api/v1/settings: your preferences and what is in effect.
Fields§
§config_path: String§index_dir: Option<String>§index_effective: String§record_names: bool§llm_model: String§defaults: Defaults§llm_key: KeySource§cache_ttl_secs: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
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 Forget for Settings
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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