zvariant_derive
This crate provides derive macros helpers for zvariant
. The zvariant
crate re-exports these
macros for your convenience so you do not need to use this crate directly.
Status: Stable.
Example code
use ;
use ;
use LE;
assert_eq!;
let s = Struct ;
let ctxt = new_dbus;
let encoded = to_bytes.unwrap;
let decoded: Struct = from_slice.unwrap;
assert_eq!;