Expand description
Runtime types and traits for the structupdate framework.
This crate provides the core building blocks used by the #[structupdate] macro:
- Traits:
Nodefor updatable types,Markablefor metadata attachment - Value wrappers:
Value,OptValue,OptRecord - Collections:
ValueList,ValueSet,ValueMap,RecordMap - Helper functions: The
defaultsmodule for custom default values
You typically don’t use this crate directly; instead, use the main structupdate crate
which re-exports everything from here along with the proc macro.
Modules§
Structs§
- OptRecord
- A wrapper for an optional nested record that implements
Node. - OptValue
- A wrapper for an optional simple value.
- Record
Map - A key-value mapping where values are nested records implementing
Node. - Record
MapDiff - Record
MapUpdates - Record
MapUpdates Into Iter - Record
MapUpdates Iter - Value
- A wrapper for a required value that supports updates and custom defaults.
- Value
Diff - A representation of the diff between to
Valueinstances. - Value
List - An ordered list of values that supports queue-like operations.
- Value
List Diff - Value
List Updates - Value
Map - A key-value mapping for simple value types.
- Value
MapDiff - Value
MapUpdates - An update for updating a
ValueMap<K, V> - Value
MapUpdates Into Iter - Value
MapUpdates Iter - Value
Set - A set of unique values.
- Value
SetDiff - Value
SetUpdates - An update for updating a
ValueSet<K> - Value
SetUpdates Into Iter - Value
SetUpdates Iter
Enums§
- OptRecord
Diff - Represent a delta between two optional records X and Y.
- OptRecord
Update - Update for an optional record
- OptValue
Diff - OptValue
Update - A config item for amending a configuration value
- Record
MapUpdate - An update for updating a
RecordMap<K, U> - Value
List Update - A queue for updates for amending a
ValueList<V> - Value
MapUpdate - A queue of updates for amending a
ValueMap<K, V> - Value
SetUpdate - A queue of updates for amending a
ValueSet<K> - Value
Update - An operation for amenting a
Value