pub struct ResolvedHostFunction {
pub name: String,
pub description: String,
pub input_schema: Value,
pub timeout_ms: Option<u64>,
pub execute: HostFunctionCallback,
}Expand description
A host function resolved to the names the VM uses.
Fields§
§name: StringKebab-case command name. Becomes the CLI subcommand.
description: StringTaken from the input schema’s description.
input_schema: Value§timeout_ms: Option<u64>§execute: HostFunctionCallbackTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ResolvedHostFunction
impl !UnwindSafe for ResolvedHostFunction
impl Freeze for ResolvedHostFunction
impl Send for ResolvedHostFunction
impl Sync for ResolvedHostFunction
impl Unpin for ResolvedHostFunction
impl UnsafeUnpin for ResolvedHostFunction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.