fix(rust): add clone

This commit is contained in:
Artemy Egorov 2024-07-30 12:33:31 +03:00
parent 581a7a97cc
commit bbf9fad818
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "dalet" name = "dalet"
version = "1.0.0-pre2" version = "1.0.0-pre3"
edition = "2021" edition = "2021"
authors = ["artegoser"] authors = ["artegoser"]
license = "MIT" license = "MIT"

View file

@ -1,6 +1,6 @@
use serde::Serialize; use serde::Serialize;
#[derive(Serialize, Debug)] #[derive(Serialize, Debug, Clone)]
pub struct Tag { pub struct Tag {
id: i8, id: i8,
body: Body, body: Body,
@ -13,7 +13,7 @@ impl Tag {
} }
} }
#[derive(Debug)] #[derive(Debug, Clone)]
pub enum Body { pub enum Body {
Text(String), Text(String),
Tags(Vec<Tag>), Tags(Vec<Tag>),
@ -33,7 +33,7 @@ impl Serialize for Body {
} }
} }
#[derive(Debug)] #[derive(Debug, Clone)]
pub enum Argument { pub enum Argument {
Text(String), Text(String),
Number(i8), Number(i8),