pub struct Declared<'a> {
pub api_key: Option<&'a str>,
pub has_api_key_command: bool,
pub endpoint: Option<&'a str>,
pub enabled: bool,
}Expand description
What one [[llm]] entry declares about its own credential.
Named fields rather than positional arguments, following ExplicitFields:
check fills these from a loaded Config and doctor from the raw TOML
tree, and two Option<&str> plus two bool in a call is a swap waiting to
happen that the compiler would not catch.
Fields§
§api_key: Option<&'a str>§has_api_key_command: bool§endpoint: Option<&'a str>§enabled: boolAuto Trait Implementations§
impl<'a> Freeze for Declared<'a>
impl<'a> RefUnwindSafe for Declared<'a>
impl<'a> Send for Declared<'a>
impl<'a> Sync for Declared<'a>
impl<'a> Unpin for Declared<'a>
impl<'a> UnsafeUnpin for Declared<'a>
impl<'a> UnwindSafe for Declared<'a>
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