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
|
|
@ -5,7 +5,7 @@
|
|||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
use crate::message::MessagePayload;
|
||||
use crate::util::helpers::Text;
|
||||
use crate::util::text_node_codecs::{Codec, Text};
|
||||
|
||||
generate_element!(
|
||||
/// Container for a set of reactions.
|
||||
|
|
@ -27,7 +27,7 @@ generate_element!(
|
|||
Reaction, "reaction", REACTIONS,
|
||||
text: (
|
||||
/// The text of this reaction.
|
||||
emoji: Text<String>
|
||||
emoji: Text
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue