pub struct RuntimeConfig {
pub mode: CliMode,
pub output: OutputFormat,
pub yes: bool,
pub dry_run: bool,
pub trust: bool,
pub safety: SafetyContext,
pub sink: OutputSink,
}Fields§
§mode: CliMode§output: OutputFormat§yes: bool§dry_run: bool§trust: boolExplicit trusted agent mode — required with –yes for autonomous trading.
safety: SafetyContext§sink: OutputSinkImplementations§
Source§impl RuntimeConfig
impl RuntimeConfig
pub fn from_cli(cli: &Cli) -> Result<Self>
pub fn emit(&self, envelope: ResponseEnvelope)
pub fn is_tty(&self) -> bool
Sourcepub fn is_interactive(&self) -> bool
pub fn is_interactive(&self) -> bool
Human-mode guided prompts (account pickers, etc.).
pub fn build_api(&self) -> Result<Arc<TraderApi>>
pub fn build_market_api(&self) -> Result<Arc<MarketDataApi>>
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 moreAuto 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