Refactored the "helpers" so that they use a common Codec trait; this makes them composable as well.
This commit is contained in:
parent
e36b8d4fb9
commit
18cb6f6e2d
19 changed files with 285 additions and 222 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
use crate::hashes::Sha1HexAttribute;
|
||||
use crate::pubsub::PubSubPayload;
|
||||
use crate::util::helpers::WhitespaceAwareBase64;
|
||||
use crate::util::text_node_codecs::{Codec, WhitespaceAwareBase64};
|
||||
|
||||
generate_element!(
|
||||
/// Communicates information about an avatar.
|
||||
|
|
@ -48,7 +48,7 @@ generate_element!(
|
|||
Data, "data", AVATAR_DATA,
|
||||
text: (
|
||||
/// Vector of bytes representing the avatar’s image.
|
||||
data: WhitespaceAwareBase64<Vec<u8>>
|
||||
data: WhitespaceAwareBase64
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue