@@ -8,6 +8,9 @@ use crate::profile::aggregate::{Profile, Source};
88use crate :: profile:: command:: ProfileCommand ;
99use crate :: profile:: views:: ProfileView ;
1010use crate :: service:: views:: all_services:: AllServicesView ;
11+ use crate :: verification_method:: aggregate:: VerificationMethod ;
12+ use crate :: verification_method:: views:: all_verification_methods:: AllVerificationMethodsView ;
13+ use crate :: verification_method:: views:: VerificationMethodView ;
1114use crate :: {
1215 document:: { aggregate:: Document , views:: DocumentView } ,
1316 service:: { aggregate:: Service , command:: ServiceCommand , views:: ServiceView } ,
@@ -43,6 +46,7 @@ pub struct CommandHandlers {
4346 pub document : CommandHandler < Document > ,
4447 pub profile : CommandHandler < Profile > ,
4548 pub service : CommandHandler < Service > ,
49+ pub verification_method : CommandHandler < VerificationMethod > ,
4650}
4751
4852/// This type is used to define the queries that are used to query the view repositories. We make use of `dyn` here, so
@@ -56,9 +60,11 @@ type Queries = ViewRepositories<
5660 dyn ViewRepository < ProfileView , Profile > ,
5761 dyn ViewRepository < ServiceView , Service > ,
5862 dyn ViewRepository < AllServicesView , Service > ,
63+ dyn ViewRepository < VerificationMethodView , VerificationMethod > ,
64+ dyn ViewRepository < AllVerificationMethodsView , VerificationMethod > ,
5965> ;
6066
61- pub struct ViewRepositories < C1 , C2 , D1 , D2 , P , S1 , S2 >
67+ pub struct ViewRepositories < C1 , C2 , D1 , D2 , P , S1 , S2 , VM1 , VM2 >
6268where
6369 C1 : ViewRepository < ConnectionView , Connection > + ?Sized ,
6470 C2 : ViewRepository < AllConnectionsView , Connection > + ?Sized ,
6773 P : ViewRepository < ProfileView , Profile > + ?Sized ,
6874 S1 : ViewRepository < ServiceView , Service > + ?Sized ,
6975 S2 : ViewRepository < AllServicesView , Service > + ?Sized ,
76+ VM1 : ViewRepository < VerificationMethodView , VerificationMethod > + ?Sized ,
77+ VM2 : ViewRepository < AllVerificationMethodsView , VerificationMethod > + ?Sized ,
7078{
7179 pub connection : Arc < C1 > ,
7280 pub all_connections : Arc < C2 > ,
7583 pub profile : Arc < P > ,
7684 pub service : Arc < S1 > ,
7785 pub all_services : Arc < S2 > ,
86+ pub verification_method : Arc < VM1 > ,
87+ pub all_verification_methods : Arc < VM2 > ,
7888}
7989
8090impl Clone for Queries {
@@ -87,6 +97,8 @@ impl Clone for Queries {
8797 profile : self . profile . clone ( ) ,
8898 service : self . service . clone ( ) ,
8999 all_services : self . all_services . clone ( ) ,
100+ verification_method : self . verification_method . clone ( ) ,
101+ all_verification_methods : self . all_verification_methods . clone ( ) ,
90102 }
91103 }
92104}
0 commit comments