pub struct WasmTool {
pub name: String,
pub module_size: usize,
pub module_hash: [u8; 32],
pub schema: Option<Value>,
pub exports: Vec<String>,
}Expand description
A loaded WASM tool module.
Fields§
§name: StringTool name.
module_size: usizeModule size in bytes.
module_hash: [u8; 32]SHA-256 hash of module bytes.
schema: Option<Value>Tool parameter schema (if exported by the module).
exports: Vec<String>Exported function names.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmTool
impl RefUnwindSafe for WasmTool
impl Send for WasmTool
impl Sync for WasmTool
impl Unpin for WasmTool
impl UnsafeUnpin for WasmTool
impl UnwindSafe for WasmTool
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more