From ad9ba30ed217ec9907d1faf389c321a1dcf5c13a Mon Sep 17 00:00:00 2001 From: jelemux Date: Sun, 7 Feb 2021 21:43:48 +0100 Subject: add organizational properties --- src/view/mod.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/view/mod.rs') diff --git a/src/view/mod.rs b/src/view/mod.rs index 65ef06d..0751c53 100644 --- a/src/view/mod.rs +++ b/src/view/mod.rs @@ -9,9 +9,19 @@ pub mod name; pub mod address; pub mod telephone; pub mod dates; +pub mod organizational; + +#[derive(Clone, PartialEq, Properties)] +pub struct InputProps + where O: VCardPropertyInputObject + Clone, + C: VCardPropertyInputComponent + Clone +{ + pub generated: Callback, + pub weak_link: WeakComponentLink, +} /// Trait for types that represent an input component for a vcard property. -pub trait VCardPropertyInputComponent>: Component { +pub trait VCardPropertyInputComponent>: Component + Clone + PartialEq { /// Returns the object containing the input data. fn get_input_object(&self) -> T; /// Getter function for the title of the component -- cgit v1.2.3