#[derive(TypeDict)]
Derive macro to add Type implementation to structs serialized as a{sv} type.
Type
a{sv}
use zvariant::{Signature, Type, TypeDict}; #[allow(deprecated)] #[derive(TypeDict)] struct Struct { field: u32, } assert_eq!(Struct::signature(), Signature::from_str_unchecked("a{sv}"));