Skip to content

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 SnapshotError

A malformed or incompatible Protobuf snapshot.

VariantMeaning
MissingFieldA required message-valued field was absent.
MissingValuesThe selected scalar value family contained no values.
ScalarTypeMismatchScalar metadata did not match the requested Rust owner type.
IncorrectValueFamilyValues appeared in a family inconsistent with the declared scalar type.
ValueOutOfRangeA 32-bit wire integer did not fit the requested narrower Rust type.
NonFiniteValueA float payload contained NaN or infinity.
TableNative Table construction rejected the decoded snapshot.

ScalarArray

rust
pub struct ScalarArray

Messages

The generated table::proto::v1 module contains ScalarArray, Curve, Map, and ScalarType.

Released under the MIT Licence.