Module wrapper

Module wrapper 

Source
Expand description

Wrapper are how dbstruct reads and writes to the database. They handle serializing and deserializing, provide the API and determine how to handle missing data.

There are two types of wrapper:

  • Those describing how to handle missing values. These at the minimum offer you get and set. Depending on the traits the database you chose implements they may also support update and conditional_update.
  • Wrapper that mimic the API of a standard library type.

Structsยง

DefaultTrait
handles missing values by generating a replacement using the types Default implementation
DefaultValue
handles missing values by generating a replacement from an expression.
Map
mimics the API of HashMap
OptionValue
Here missing values are represented by Option::None.
Vec
mimics the API of Vec
VecDeque
mimics the API of VecDeque