pub fn fee_map(&self) -> Result<FeeMap, ConsensusServiceError> {
        FeeMap::try_from_iter(
            self.tokens
                .iter()
                .map(|token_config| {
                    Ok((
                        token_config.token_id,
                        token_config.minimum_fee_or_default().ok_or_else(|| {
                            ConsensusServiceError::Configuration(format!(
                                "missing minimum fee for token id {:?}",
                                token_config.token_id
                            ))
                        })?,
                    ))
                })
                .collect::<Result<Vec<_>, ConsensusServiceError>>()?,
        )
        .map_err(|err| ConsensusServiceError::Configuration(format!("FeeMap: {}", err.to_string())))
    }
/// Construct a FeeMap based on the configuration.
Construct a FeeMap based on the configuration.
Construct a FeeMap based on the configuration .
pub fn fee_map(&self) -> Result<FeeMap, ConsensusServiceError> {
        FeeMap::try_from_iter(
            self.tokens
                .iter()
                .map(|token_config| {
                    Ok((
                        token_config.token_id,
                        token_config.minimum_fee_or_default().ok_or_else(|| {
                            ConsensusServiceError::Configuration(format!(
                                "missing minimum fee for token id {:?}",
                                token_config.token_id
                            ))
                        })?,
                    ))
                })
                .collect::<Result<Vec<_>, ConsensusServiceError>>()?,
        )
        .map_err(|err| ConsensusServiceError::Configuration(format!("FeeMap: {}", err.to_string())))
    }
pub fn fee_map ( & self ) -> Result < FeeMap , ConsensusServiceError > { FeeMap :: try_from_iter ( self . tokens . iter ( ) . map ( | token_config | { Ok ( ( token_config . token_id , token_config . minimum_fee_or_default ( ) . ok_or_else ( | | { ConsensusServiceError :: Configuration ( format ! ( " " token_config token_id ) ) } ) ? , ) ) } ) . collect :: < Result < Vec < _ > , ConsensusServiceError > > ( ) ? , ) . map_err ( | err | ConsensusServiceError :: Configuration ( format ! ( " " err to_string ( ) ) ) ) }
Construct a FeeMap based on the configuration.
Construct a FeeMap based on the configuration .
&self