pub fn finish(self) -> Result<SqlIdentityPolicy, Error> {
        info!("Registering identity provider: {:?}", self.variant);

        Ok(SqlIdentityPolicy(Rc::new(SqlIdentityInner::new(
            match self.variant {
                Variant::Sqlite => SqlActor::sqlite(self.pool, &self.uri)?,
                Variant::Mysql => SqlActor::mysql(self.pool, &self.uri)?,
                Variant::Pg => SqlActor::pg(self.pool, &self.uri)?,
            },
            self.hdr,
        ))))
    }
/// Finish building this SQL identity policy.  This will attempt
/// to construct the a pool of connections to the database
/// specified.  The type of database is determined by the uri set.
/// On success, a new SqlIdentityPolicy is returned, on failure
/// an error is returned.
Finish building this SQL identity policy.  This will attempt
to construct the a pool of connections to the database
specified.  The type of database is determined by the uri set.
On success, a new SqlIdentityPolicy is returned, on failure
an error is returned.
Finish building this SQL identity policy . This will attempt to construct the a pool of connections to the database specified . The type of database is determined by the uri set . On success a new SqlIdentityPolicy is returned on failure an error is returned .
pub fn finish(self) -> Result<SqlIdentityPolicy, Error> {
        info!("Registering identity provider: {:?}", self.variant);
        Ok(SqlIdentityPolicy(Rc::new(SqlIdentityInner::new(
            match self.variant {
                Variant::Sqlite => SqlActor::sqlite(self.pool, &self.uri)?,
                Variant::Mysql => SqlActor::mysql(self.pool, &self.uri)?,
                Variant::Pg => SqlActor::pg(self.pool, &self.uri)?,
            },
            self.hdr,
        ))))
    }
pub fn finish ( self ) -> Result < SqlIdentityPolicy , Error > { info ! ( " " self variant ) ; Ok ( SqlIdentityPolicy ( Rc :: new ( SqlIdentityInner :: new ( match self . variant { Variant :: Sqlite => SqlActor :: sqlite ( self . pool , & self . uri ) ? , Variant :: Mysql => SqlActor :: mysql ( self . pool , & self . uri ) ? , Variant :: Pg => SqlActor :: pg ( self . pool , & self . uri ) ? , } , self . hdr , ) ) ) ) }
Finish building this SQL identity policy.
Finish building this SQL identity policy .
self
self