Re-exports
pub use polywrap_client as client;
pub use polywrap_client_builder as builder;
pub use polywrap_client_default_config as default_config;
pub use polywrap_core as core;
pub use polywrap_msgpack_serde as msgpack;
pub use polywrap_plugin as plugin;
pub use polywrap_resolvers as resolvers;
pub use polywrap_wasm as wasm;
pub use wrap_manifest_schemas as wrap_manifest;
pub use polywrap_resolver_extensions as resolver_extensions;
Modules
- A map of String to serde_json::Value.
- The Value enum, a loosely typed way of representing any valid JSON value.
Macros
- Helper macro when implementing the
Deserializer
part of a new data format for Serde. - Construct a
serde_json::Value
from a JSON literal. - Construct a URI from compatible types.
Structs
- A big signed integer type.
- A big decimal type.
- Wrapper around
Vec<u8>
to serialize and deserialize efficiently. Client
is a Polywrap client used for interacting, loading, resolving and invoking wraps.- Struct representing the configuration of a
Client
. - Configuration struct for implementors of
Client
. Can be built manually or through theClientConfigBuilder
- Represents a JSON number, whether integer or floating point.
- Represents an error that occurs while parsing a wrap URI.
- Constructs a URI Resolver based on a set of default rules used by the
Client
. - Options for the construction of URI Resolver based on a set of default rules used by the
Client
. Client
is a Polywrap client used for interacting, loading, resolving and invoking wraps.- Struct representing the configuration of a
Client
. - Iterator that deserializes a stream into multiple JSON values.
- The default system config for the
Client
. Includes plugins and support for Filesystem, HTTP and IPFS interaction Also includes a Logger plugin - Represents a Wrap URI.
- A utility struct to store a URI redirect.
- The default Web3 config for the
Client
Includes plugins and support for Ethereum and ENS interaction
Enums
- An enum that represents all possible errors the Polywrap Client can throw.
- Represents any valid JSON value.
Traits
- Defines a type that uses the builder pattern to build a
ClientConfig
. - Defines a type that represents a Polywrap Client.
- Defines a type that can build a
CoreClientConfig
. - A data structure that can be deserialized from any data format supported by Serde.
- Defines an object capable of invoking on URIs
- Defines a type that uses the builder pattern to build a
ClientConfig
. - A data structure that can be serialized into any data format supported by Serde.
Functions
- Deserialize an instance of type
T
from an I/O stream of JSON. - Deserialize an instance of type
T
from a string of JSON text. - Interpret a
serde_json::Value
as an instance of typeT
. - Serialize the given data structure as a String of JSON.
- Serialize the given data structure as a pretty-printed String of JSON.
- Convert a
T
intoserde_json::Value
which is an enum that can represent any valid JSON data. - Serialize the given data structure as a pretty-printed JSON byte vector.
- Serialize the given data structure as JSON into the I/O stream.
- Serialize the given data structure as pretty-printed JSON into the I/O stream.
Type Definitions
- Alias for a
Result
with the error typeserde_json::Error
.