Crate polywrap_plugin

Source

Re-exports§

pub use polywrap_plugin_implementor as implementor;
pub use polywrap_core;
pub use polywrap_msgpack_serde;
pub use error::*;
pub use method::*;
pub use module::*;
pub use package::*;
pub use with_methods::*;
pub use wrapper::*;

Modules§

JSON
Serde JSON
client
de
Deserialize JSON data to a Rust data structure.
deserialize
error
file_reader
get_schemas
interface_implementation
invoker
macros
map
A map of String to serde_json::Value.
method
module
package
redirects
resolution
ser
Serialize a Rust data structure into JSON data.
serde_bytes
Wrapper types to enable optimized handling of &[u8] and Vec<u8>.
uri
uri_resolver_handler
utils
validate
value
The Value enum, a loosely typed way of representing any valid JSON value.
versions
with_methods
wrap_invoker
wrap_loader
wrapper
wrappers

Macros§

json
Construct a serde_json::Value from a JSON literal.
uri
Construct a URI from compatible types.

Structs§

AnyDefinition
ArrayDefinition
BigInt
A big signed integer type.
BigIntWrapper
BigNumber
A big decimal type.
ByteBuf
Wrapper around Vec<u8> to serialize and deserialize efficiently.
CapabilityDefinition
CapabilityDefinitionGetImplementations
CoreClientConfig
Configuration struct for implementors of Client. Can be built manually or through the ClientConfigBuilder
EnumDefinition
EnumRef
EnvDefinition
GenericDefinition
ImportedDefinition
ImportedEnumDefinition
ImportedEnvDefinition
ImportedModuleDefinition
ImportedModuleRef
ImportedObjectDefinition
InterfaceDefinition
InterfaceImplementedDefinition
JSONString
Map
An ordered map based on a B-Tree.
MapDefinition
MapKeyDefinition
MethodDefinition
MethodDefinitionEnv
ModuleDefinition
Number
Represents a JSON number, whether integer or floating point.
ObjectDefinition
ObjectRef
ParseBigIntError
ParseError
Represents an error that occurs while parsing a wrap URI.
PropertyDefinition
ScalarDefinition
StreamDeserializer
Iterator that deserializes a stream into multiple JSON values.
UnresolvedObjectOrEnumRef
Uri
Represents a Wrap URI.
UriRedirect
A utility struct to store a URI redirect.
WithComment
WithKind
WrapManifest01
WrapManifest01Abi

Enums§

AnyManifest
MapKeyType
ScalarType
Value
Represents any valid JSON value.

Traits§

CoreClient
Defines a type that represents a Polywrap Client.
CoreClientConfigBuilder
Defines a type that can build a CoreClientConfig.
Invoker
Defines an object capable of invoking on URIs

Functions§

from_reader
Deserialize an instance of type T from an I/O stream of JSON.
from_str
Deserialize an instance of type T from a string of JSON text.
from_value
Interpret a serde_json::Value as an instance of type T.
get_error_message
to_string
Serialize the given data structure as a String of JSON.
to_string_pretty
Serialize the given data structure as a pretty-printed String of JSON.
to_value
Convert a T into serde_json::Value which is an enum that can represent any valid JSON data.
to_vec
to_vec_pretty
Serialize the given data structure as a pretty-printed JSON byte vector.
to_writer
Serialize the given data structure as JSON into the I/O stream.
to_writer_pretty
Serialize the given data structure as pretty-printed JSON into the I/O stream.

Type Aliases§

WrapManifest
WrapManifestAbi

Attribute Macros§

plugin_impl