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
- Serde JSON
- Deserialize JSON data to a Rust data structure.
- A map of String to serde_json::Value.
- Serialize a Rust data structure into JSON data.
- Wrapper types to enable optimized handling of
&[u8]
andVec<u8>
. - The Value enum, a loosely typed way of representing any valid JSON value.
Macros
- 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. - Configuration struct for implementors of
Client
. Can be built manually or through theClientConfigBuilder
- An ordered map based on a B-Tree.
- Represents a JSON number, whether integer or floating point.
- Represents an error that occurs while parsing a wrap URI.
- Iterator that deserializes a stream into multiple JSON values.
- Represents a Wrap URI.
- A utility struct to store a URI redirect.
Enums
- Represents any valid JSON value.
Traits
- Defines a type that represents a Polywrap Client.
- Defines a type that can build a
CoreClientConfig
. - Defines an object capable of invoking on URIs
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.