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]
andVec<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§
Structs§
- AnyDefinition
- Array
Definition - BigInt
- A big signed integer type.
- BigInt
Wrapper - BigNumber
- A big decimal type.
- ByteBuf
- Wrapper around
Vec<u8>
to serialize and deserialize efficiently. - Capability
Definition - Capability
Definition GetImplementations - Core
Client Config - Configuration struct for implementors of
Client
. Can be built manually or through theClientConfigBuilder
- Enum
Definition - EnumRef
- EnvDefinition
- Generic
Definition - Imported
Definition - Imported
Enum Definition - Imported
EnvDefinition - Imported
Module Definition - Imported
Module Ref - Imported
Object Definition - Interface
Definition - Interface
Implemented Definition - JSON
String - Map
- An ordered map based on a B-Tree.
- MapDefinition
- MapKey
Definition - Method
Definition - Method
Definition Env - Module
Definition - Number
- Represents a JSON number, whether integer or floating point.
- Object
Definition - Object
Ref - Parse
BigInt Error - Parse
Error - Represents an error that occurs while parsing a wrap URI.
- Property
Definition - Scalar
Definition - Stream
Deserializer - Iterator that deserializes a stream into multiple JSON values.
- Unresolved
Object OrEnum Ref - Uri
- Represents a Wrap URI.
- UriRedirect
- A utility struct to store a URI redirect.
- With
Comment - With
Kind - Wrap
Manifest01 - Wrap
Manifest01 Abi
Enums§
- AnyManifest
- MapKey
Type - Scalar
Type - Value
- Represents any valid JSON value.
Traits§
- Core
Client - Defines a type that represents a Polywrap Client.
- Core
Client Config Builder - 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 typeT
. - 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
intoserde_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.