Crate flow_value

Source
Expand description

This crate contains Value, an enum representing all values that can be used as node’s input and output, and utilities for working with Value.

Common operations:

  • Converting Value to Rust types.
  • Converting Rust types to Value.
  • Receiving flow_value::Map as node’s input.
  • Returning flow_value::Map as node’s output.
  • Converting Value to/from JSON to use in HTTP APIs and database.
  • Getting and updating nested values with JSON Pointer syntax.

Modules§

bincode_impl
crud
decimal
default
keypairDeprecated
keys
macros
pubkey
signature
with
serde_with helpers.

Macros§

array
map

Structs§

Bytes
ConstBytes
Decimal
Decimal represents a 128 bit representation of a fixed-precision decimal number. The finite set of values of type Decimal are of the form m / 10e, where m is an integer such that -296 < m < 296, and e is an integer between 0 and 28 inclusive.

Enums§

Error
Value
Value represents all values that nodes can use as input and output.

Functions§

from_map
Interpret a Map as an instance of type T
from_value
Interpret a Value as an instance of type T
to_map
Convert a T into Map.
to_value
Convert a T into Value.

Type Aliases§

HashMap
Allow for switching HashMap implementation
Key
Key type of Map
Map