Ensure custom JavaScript classes are cloneable
This commit is contained in:
parent
efbc5d3219
commit
1fb147eb5e
3 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@ pub mod duration {
|
|||
|
||||
#[derive(Clone)]
|
||||
#[quickjs(class)]
|
||||
#[quickjs(cloneable)]
|
||||
pub struct Duration {
|
||||
#[quickjs(hide)]
|
||||
pub(crate) value: String,
|
||||
|
|
|
@ -10,6 +10,7 @@ pub mod record {
|
|||
|
||||
#[derive(Clone)]
|
||||
#[quickjs(class)]
|
||||
#[quickjs(cloneable)]
|
||||
pub struct Record {
|
||||
#[quickjs(hide)]
|
||||
pub(crate) tb: String,
|
||||
|
|
|
@ -10,6 +10,7 @@ pub mod uuid {
|
|||
|
||||
#[derive(Clone)]
|
||||
#[quickjs(class)]
|
||||
#[quickjs(cloneable)]
|
||||
pub struct Uuid {
|
||||
#[quickjs(hide)]
|
||||
pub(crate) value: String,
|
||||
|
|
Loading…
Reference in a new issue