Function geojson::ser::to_feature_byte_vec
source · pub fn to_feature_byte_vec<T>(value: &T) -> Result<Vec<u8>>where
T: Serialize,
Expand description
Serialize a single data structure to a GeoJSON Feature byte vector.
Note that T
must have a column called geometry
.
§Errors
Serialization can fail if T
’s implementation of Serialize
decides to
fail, or if T
contains a map with non-string keys.