Skip to main content

Module derive

Module derive 

Source
Expand description

Code generation shared by the zvariant_derive and zgvariant_derive proc-macro crates.

Re-exportsยง

pub use attrs::*;

Modulesยง

attrs
dict ๐Ÿ”’
signature ๐Ÿ”’
type ๐Ÿ”’
value ๐Ÿ”’

Structsยง

Config
Configuration for a derive crate using this code generation.

Enumsยง

ValueType
Which of the Value-family traits expand_value_derive should implement.

Functionsยง

expand_deserialize_dict_derive
Implements Deserialize for structs from D-Bus dictionaries via a serde helper.
expand_serialize_dict_derive
Implements Serialize for structs as D-Bus dictionaries via a serde helper.
expand_signature_macro
Expand the signature! macro implementation.
expand_type_derive
Implements the Type trait for structs and enums.
expand_value_derive
Implements the Value or OwnedValue conversions, per value_type, for structs and enums.
signature_to_tokens_with_crate
Converts a parsed Signature to compile-time token representation with a custom crate path.