Rust Protobuf snapshots
Enable the prost feature to use stable table.v1 messages and validated conversions. Curve and Map implement conversions to and from their corresponding messages.
SnapshotError
rust
pub enum SnapshotErrorA malformed or incompatible Protobuf snapshot.
| Variant | Meaning |
|---|---|
MissingField | A required message-valued field was absent. |
MissingValues | The selected scalar value family contained no values. |
ScalarTypeMismatch | Scalar metadata did not match the requested Rust owner type. |
IncorrectValueFamily | Values appeared in a family inconsistent with the declared scalar type. |
ValueOutOfRange | A 32-bit wire integer did not fit the requested narrower Rust type. |
NonFiniteValue | A float payload contained NaN or infinity. |
Table | Native Table construction rejected the decoded snapshot. |
ScalarArray
rust
pub struct ScalarArrayMessages
The generated table::proto::v1 module contains ScalarArray, Curve, Map, and ScalarType.
