pub trait CallArgs: Sealed {
// Required method
fn into_arg_string(self) -> Result<String, AnyError>;
}
Expand description
Trait that is implemented for types that can be passed as argument to Script::call()
.
This is currently only implemented for tuples of size 0..=5, i.e. JS functions with 0 to 5 arguments. Use structs or arrays inside a one-element tuple if you need more flexibility.
Required Methods§
Sourcefn into_arg_string(self) -> Result<String, AnyError>
fn into_arg_string(self) -> Result<String, AnyError>
Convert the arguments into a JSON string