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]
name = "dalet"
version = "1.0.0-pre2"
version = "1.0.0-pre3"
edition = "2021"
authors = ["artegoser"]
license = "MIT"

View file

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