pub struct AiConfigSource<P = NoPrimaryAiConfigSource> { /* private fields */ }Expand description
Layered AI config source: primary config_store-like source, then gcore.yaml.
The source is intentionally AI-only: plain values are returned literally and
$secret: values are delegated to the primary source when present.
Implementations§
Source§impl AiConfigSource
impl AiConfigSource
pub fn from_gobby_home(gobby_home: &Path) -> Result<Self>
Source§impl<P> AiConfigSource<P>where
P: ConfigSource,
impl<P> AiConfigSource<P>where
P: ConfigSource,
pub fn with_primary(primary: P, standalone: Option<StandaloneConfig>) -> Self
pub fn with_primary_from_gobby_home( primary: P, gobby_home: &Path, ) -> Result<Self>
Trait Implementations§
Source§impl<P: Clone> Clone for AiConfigSource<P>
impl<P: Clone> Clone for AiConfigSource<P>
Source§fn clone(&self) -> AiConfigSource<P>
fn clone(&self) -> AiConfigSource<P>
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<P> ConfigSource for AiConfigSource<P>where
P: ConfigSource,
impl<P> ConfigSource for AiConfigSource<P>where
P: ConfigSource,
Auto Trait Implementations§
impl<P> Freeze for AiConfigSource<P>where
P: Freeze,
impl<P> RefUnwindSafe for AiConfigSource<P>where
P: RefUnwindSafe,
impl<P> Send for AiConfigSource<P>where
P: Send,
impl<P> Sync for AiConfigSource<P>where
P: Sync,
impl<P> Unpin for AiConfigSource<P>where
P: Unpin,
impl<P> UnsafeUnpin for AiConfigSource<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for AiConfigSource<P>where
P: UnwindSafe,
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