pub struct CliHandler {
pub command: String,
pub args: Vec<String>,
pub cwd: Option<String>,
pub env: FxHashMap<String, String>,
pub timeout_ms: Option<u64>,
pub stream: bool,
}Fields§
§command: String§args: Vec<String>§cwd: Option<String>§env: FxHashMap<String, String>§timeout_ms: Option<u64>§stream: boolImplementations§
Trait Implementations§
Source§impl Clone for CliHandler
impl Clone for CliHandler
Source§fn clone(&self) -> CliHandler
fn clone(&self) -> CliHandler
Returns a duplicate of the value. Read more
1.0.0 · 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 CliHandler
impl Debug for CliHandler
Source§impl Handler for CliHandler
impl Handler for CliHandler
Source§fn handle<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the handler with type-safe input. Read more
Source§fn input_schema() -> RootSchema
fn input_schema() -> RootSchema
Generate JSON schema for input (override for custom schemas). Read more
Source§fn output_schema() -> RootSchema
fn output_schema() -> RootSchema
Generate JSON schema for output. Read more
Auto Trait Implementations§
impl Freeze for CliHandler
impl RefUnwindSafe for CliHandler
impl Send for CliHandler
impl Sync for CliHandler
impl Unpin for CliHandler
impl UnwindSafe for CliHandler
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