From c3fcc157af1772991847f5467efe7893b5298667 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Fri, 13 Jan 2023 14:36:48 +0800 Subject: [PATCH] Add missing Clone trait --- butane_core/src/many.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/butane_core/src/many.rs b/butane_core/src/many.rs index c6969f69..e27cc7a9 100644 --- a/butane_core/src/many.rs +++ b/butane_core/src/many.rs @@ -16,7 +16,7 @@ fn default_oc() -> OnceCell> { /// U::PKType. Table name is T_ManyToMany_foo where foo is the name of /// the Many field // -#[derive(Debug, Serialize, Deserialize)] +#[derive(Clone, Debug, Serialize, Deserialize)] pub struct Many where T: DataObject, @@ -153,6 +153,7 @@ where }); vals.map(|v| v.iter()) } + pub fn columns(&self) -> [Column; 2] { [ Column::new("owner", self.owner_type.clone()),