macros: Merge generate_element_with_text!() into generate_element!().
This commit is contained in:
parent
b1a7b8019f
commit
36cfe76e4d
7 changed files with 71 additions and 83 deletions
|
|
@ -66,13 +66,15 @@ impl IntoAttributeValue for Algo {
|
|||
}
|
||||
}
|
||||
|
||||
generate_element_with_text!(
|
||||
generate_element!(
|
||||
#[derive(PartialEq)]
|
||||
Hash, "hash", HASHES,
|
||||
[
|
||||
attributes: [
|
||||
algo: Algo = "algo" => required
|
||||
],
|
||||
hash: Base64<Vec<u8>>
|
||||
text: (
|
||||
hash: Base64<Vec<u8>>
|
||||
)
|
||||
);
|
||||
|
||||
impl Hash {
|
||||
|
|
|
|||
Loading…
Reference in a new issue