mirror of
https://github.com/TxtDot/dalet.git
synced 2024-11-21 20:36:23 +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]
|
[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"
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Add table
Reference in a new issue