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: config.rs
    path of file: ./repos/fluvio/crates/fluvio-connector-common/src
    
    the code of the file until where you have to start completion: use std::io::Read;

use anyhow::{Result, Context};
use serde::de::DeserializeOwned;
use serde_yaml::Value;
use tracing::trace;

pub use fluvio_connector_package::config::ConnectorConfig;

pub fn value_from_reader<R: Read>(reader: R) -> Result<Value> {
    serde_yaml::from_reader(reader).context("unable to parse config file into YAML"
    
    fn test_from_value() {
        use super::*;
        let value = serde_yaml::from_str(
            r#"
        meta:
            name: test
            version: 0.1.0
            topic: test
            type: http-source
            consumer:
                partition: 0
        http:
            port: 8080
        "#,
        )
        .unwrap();
        let config: MetaConfigV1 = from_value(value, Some("meta")).unwrap();
        assert_eq!(config.name, "test");
        assert_eq!(config.topic, "test");
        assert_eq!(
            config
                .consumer
                .expect("expected some consume config")
                .partition,
            ConsumerPartitionConfig::One(0)
        );
    }