pub struct SystemOneSection {
pub enabled: Option<bool>,
pub base_url: Option<String>,
pub api_key: Option<String>,
pub model: Option<String>,
pub timeout_ms: Option<u64>,
}Expand description
The raw [systemone] section as written in forge.toml.
Fields§
§enabled: Option<bool>§base_url: Option<String>§api_key: Option<String>§model: Option<String>§timeout_ms: Option<u64>Implementations§
Source§impl SystemOneSection
impl SystemOneSection
Sourcepub fn into_config(self) -> Result<Option<SystemOneConfig>, String>
pub fn into_config(self) -> Result<Option<SystemOneConfig>, String>
Ok(None) is the dormant state (disabled, or nothing to start);
Err is enabled-but-unusable, and the caller prefixes the
section name into the message.
Trait Implementations§
Source§impl Clone for SystemOneSection
impl Clone for SystemOneSection
Source§impl Debug for SystemOneSection
Hand-written because the raw API key must never be printed.
impl Debug for SystemOneSection
Hand-written because the raw API key must never be printed.
Source§impl<'de> Deserialize<'de> for SystemOneSection
impl<'de> Deserialize<'de> for SystemOneSection
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 SystemOneSection
impl RefUnwindSafe for SystemOneSection
impl Send for SystemOneSection
impl Sync for SystemOneSection
impl Unpin for SystemOneSection
impl UnsafeUnpin for SystemOneSection
impl UnwindSafe for SystemOneSection
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