pub struct RuntimeConfig { /* private fields */ }Expand description
Configuration load errors and the validated runtime policy derived from TOML. Normalized runtime policy derived from validated TOML configuration.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn default_channel(&self) -> &str
pub fn default_channel(&self) -> &str
Returns the channel used when callers omit an explicit channel.
Sourcepub fn has_channel(&self, name: &str) -> bool
pub fn has_channel(&self, name: &str) -> bool
Reports whether a channel name is configured.
Sourcepub fn has_only_default_channel(&self) -> bool
pub fn has_only_default_channel(&self) -> bool
True when only the default channel exists and channel choice can be hidden.
Sourcepub fn channel_list(&self) -> ListChannelsOutput
pub fn channel_list(&self) -> ListChannelsOutput
Builds the channel catalog exposed by the list_channels MCP tool.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
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 Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl PartialEq for RuntimeConfig
impl PartialEq for RuntimeConfig
Source§fn eq(&self, other: &RuntimeConfig) -> bool
fn eq(&self, other: &RuntimeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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