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: value.rs
    path of file: ./repos/doku/doku/src/objects
    
    the code of the file until where you have to start completion: mod serializer;

use self::serializer::*;
use crate::*;

#[derive(Debug)]
pub enum Value {
    /// Value of [`TypeKind::Optional`].
    None,

    /// Value of [`TypeKind::Bool`].
    Bool(bool),

    /// Value of [`TypeKind::String`].
    Char(char),

    /// Value of [`TypeKind::Float`].
    F32(
    
    pub fn as_struct_named_field(&self, name: &str) -> Option<&Self> {
        let fields = if let Self::Map(fields) = self {
            fields
        } else {
            return None;
        };

        fields.iter().find_map(|(name2, value)| {
            if let Value::String(name2) = name2 {
                if name2 == name {
                    return Some(value);
                }
            }

            None
        })
    }