Repository: AlexPikalov/cdrs (language: rust)

Issue:
Counters are documented as u64
`type-mapping.md` specified counter -> u64, but when using u64 `try_from_row` fails. It should be documented as i64.


Discussion / hints:
Hello @lewisdiamond ,

Thanks for submitting this issue.
You're right it should be `i64`. I've marked this as a documentation bug.

More precise documentation about data marshaling/unmarshaling you can find in e2e tests https://github.com/AlexPikalov/cdrs/blob/master/tests/native_types.rs#L63

Fix patch:
diff --git a/type-mapping.md b/type-mapping.md
index 5800cca..3914e07 100644
--- a/type-mapping.md
+++ b/type-mapping.md
@@ -17,7 +17,7 @@
 | float | f32 | all |
 | double | f64 | all |
 | uuid | [Uuid](https://doc.rust-lang.org/uuid/uuid/struct.Uuid.html) | all |
-| counter | u64 | all |
+| counter | i64 | all |
 
 #### complex types
 | Cassandra | Rust + CDRS |


Test patch: