macros: Merge generate_element_with_text!() into generate_element!().

This commit is contained in:
Emmanuel Gil Peyrot 2018-08-02 19:07:07 +02:00
commit 36cfe76e4d
7 changed files with 71 additions and 83 deletions

View file

@ -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 {