macro_rules! define_name_type_impls {
(
name: $name:ident,
owned: $owned_name:ident,
validate: $validate_fn:ident $(,)?
) => { ... };
}Expand description
Generates all boilerplate code for a D-Bus name type and its owned variant.
This macro generates all the boilerplate code for a D-Bus name type and its owned variant.
ยงParameters
$name: The name of the borrowed type (e.g.,InterfaceName).$owned_name: The name of the owned type (e.g.,OwnedInterfaceName).$validate_fn: The validation function to use.