mirror of
https://github.com/TxtDot/dalet.git
synced 2024-11-24 05:46:22 +03:00
fix(rust): add clone
This commit is contained in:
parent
581a7a97cc
commit
bbf9fad818
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "dalet"
|
||||
version = "1.0.0-pre2"
|
||||
version = "1.0.0-pre3"
|
||||
edition = "2021"
|
||||
authors = ["artegoser"]
|
||||
license = "MIT"
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue