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
getandset. Depending on thetraitsthe database you chose implements they may also supportupdateandconditional_update. - Wrapper that mimic the API of a standard library type.
Structsยง
- Default
Trait - handles missing values by generating a replacement using the types
Defaultimplementation - Default
Value - handles missing values by generating a replacement from an expression.
- Map
- mimics the API of
HashMap - Option
Value - Here missing values are represented by
Option::None. - Vec
- mimics the API of
Vec - VecDeque
- mimics the API of
VecDeque