4 releases
new 0.1.3 | Nov 22, 2024 |
---|---|
0.1.2 | Nov 21, 2024 |
0.1.1 | Nov 21, 2024 |
0.1.0 | Nov 21, 2024 |
#605 in Parser implementations
174 downloads per month
12MB
243K
SLoC
This package is experimental and I tried to convert answer from k8s-openapi (kube-rs) to rust-protobuf.
In the future I will add Serialize to custom_date. At this time i only need the Deserialize (i don't like to work with JSON).
use k8s_rs_pb::api::core::v1::Pod;
use k8s_openapi::api::core::v1::Pod as OtherPod;
let pod_openapi = OtherPod::default();
let pod_pb: Pod = k8s_rs_pb::converter::from_openapi(pod_openapi).unwrap();
assert_eq!(pod_pb.has_metadata(), true);
Dependencies
~41MB
~668K SLoC