pub fn clone_for_template(&self) -> Self {
        Self {
            admission_control: self.admission_control.clone(),
            rpc: self.rpc.clone(),
            base: self.base.clone(),
            consensus: self.consensus.clone(),
            debug_interface: self.debug_interface.clone(),
            execution: self.execution.clone(),
            full_node_networks: self
                .full_node_networks
                .iter()
                .map(|c| c.clone_for_template())
                .collect(),
            logger: self.logger.clone(),
            metrics: self.metrics.clone(),
            mempool: self.mempool.clone(),
            state_sync: self.state_sync.clone(),
            secure: self.secure.clone(),
            storage: self.storage.clone(),
            test: None,
            upstream: self.upstream.clone(),
            validator_network: self
                .validator_network
                .as_ref()
                .map(|n| n.clone_for_template()),
        }
    }
/// This clones the underlying data except for the keypair so that this config can be used as a
/// template for another config.
This clones the underlying data except for the keypair so that this config can be used as a
template for another config.
This clones the underlying data except for the keypair so that this config can be used as a template for another config .
pub fn clone_for_template(&self) -> Self {
        Self {
            admission_control: self.admission_control.clone(),
            rpc: self.rpc.clone(),
            base: self.base.clone(),
            consensus: self.consensus.clone(),
            debug_interface: self.debug_interface.clone(),
            execution: self.execution.clone(),
            full_node_networks: self
                .full_node_networks
                .iter()
                .map(|c| c.clone_for_template())
                .collect(),
            logger: self.logger.clone(),
            metrics: self.metrics.clone(),
            mempool: self.mempool.clone(),
            state_sync: self.state_sync.clone(),
            secure: self.secure.clone(),
            storage: self.storage.clone(),
            test: None,
            upstream: self.upstream.clone(),
            validator_network: self
                .validator_network
                .as_ref()
                .map(|n| n.clone_for_template()),
        }
    }
pub fn clone_for_template ( & self ) -> Self { Self { admission_control : self . admission_control . clone ( ) , rpc : self . rpc . clone ( ) , base : self . base . clone ( ) , consensus : self . consensus . clone ( ) , debug_interface : self . debug_interface . clone ( ) , execution : self . execution . clone ( ) , full_node_networks : self . full_node_networks . iter ( ) . map ( | c | c . clone_for_template ( ) ) . collect ( ) , logger : self . logger . clone ( ) , metrics : self . metrics . clone ( ) , mempool : self . mempool . clone ( ) , state_sync : self . state_sync . clone ( ) , secure : self . secure . clone ( ) , storage : self . storage . clone ( ) , test : None , upstream : self . upstream . clone ( ) , validator_network : self . validator_network . as_ref ( ) . map ( | n | n . clone_for_template ( ) ) , } }
This clones the underlying data except for the keypair so that this config can be used as a
template for another config.
This clones the underlying data except for the keypair so that this config can be used as a template for another config .
&self
&self