You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: features.rs
    path of file: ./repos/prisma-engines/query-engine/query-engine/src
    
    the code of the file until where you have to start completion: use crate::opt::PrismaOpt;

/// Feature models the engine feature toggles that can be set up during the startup via options
/// See [PrismaOpt]'s boolean flags, for each of the corresponding feature toggles.
#[enumflags2::bitflags]
#[derive(Clone, Copy, Debug)]
#[repr(u8)]
pub enum Feature {
    DataProxyMetricOverride,
    DebugMode,
    LogQueries,
    Metrics,
    OpenTelemetry,
    Playground,
    RawQueries,
  
    
    fn from(opts: &PrismaOpt) -> Self {
        let mut features: EnabledFeatures = Self::default();

        if opts.dataproxy_metric_override {
            features |= Feature::DataProxyMetricOverride
        }
        if opts.enable_debug_mode {
            features |= Feature::DebugMode
        }
        if opts.log_queries {
            features |= Feature::LogQueries
        }
        if opts.enable_metrics {
            features |= Feature::Metrics
        }
        if opts.enable_open_telemetry {
            features |= Feature::OpenTelemetry
        }
        if opts.enable_playground {
            features |= Feature::Playground
        }
        if opts.enable_raw_queries {
            features |= Feature::RawQueries
        }
        if opts.enable_telemetry_in_response {
            features |= Feature::TelemetryInResponse
        }

        features
    }