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/avrow/src
    
    the code of the file until where you have to start completion: //! Represents the types that

use crate::error::AvrowErr;
use crate::schema;
use crate::schema::common::validate_name;
use crate::schema::parser::parse_default;
use crate::schema::Registry;
use crate::util::{encode_long, encode_raw_bytes};
use crate::Schema;
use byteorder::LittleEndian;
use byteorder::WriteBytesExt;
use indexmap::IndexMap;
use integer_encoding::VarIntWriter;
use schema::Order;
use schema::Variant;
use serde::Serialize;
use std::collections::{BTreeMap, HashMap};
use std::fmt::Display;
use std::io::Write;

// Convenient type alias for map initialzation.
pub type Map = HashMap<String, Value>;

#[derive(Debug, Clone, PartialEq, Serialize)]
pub(crate) struct FieldValue {
    pub(crate) value: Value,
    #[serde(skip_serializi
    
//     fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
//         match (self, other) {
//             (Value::Null, Value::Null) => Some(Ordering::Equal),
//             (Value::Boolean(self_v), Value::Boolean(other_v)) => {
//                 if self_v == other_v {
//                     return Some(Ordering::Equal);
//                 }
//                 if *self_v == false && *other_v {
//                     Some(Ordering::Less)
//                 } else {
//                     Some(Ordering::Greater)
//                 }
//             }
//             (Value::Int(self_v), Value::Int(other_v)) => Some(self_v.cmp(other_v)),
//             (Value::Long(self_v), Value::Long(other_v)) => Some(self_v.cmp(other_v)),
//             (Value::Float(self_v), Value::Float(other_v)) => self_v.partial_cmp(other_v),
//             (Value::Double(self_v), Value::Double(other_v)) => self_v.partial_cmp(other_v),
//             (Value::Bytes(self_v), Value::Bytes(other_v)) => self_v.partial_cmp(other_v),
//             (Value::Byte(self_v), Value::Byte(other_v)) => self_v.partial_cmp(other_v),
//             (Value::Fixed(self_v), Value::Fixed(other_v)) => self_v.partial_cmp(other_v),
//             (Value::Str(self_v), Value::Str(other_v)) => self_v.partial_cmp(other_v),
//             (Value::Array(self_v), Value::Array(other_v)) => self_v.partial_cmp(other_v),
//             (Value::Enum(self_v), Value::Enum(other_v)) => self_v.partial_cmp(other_v),
//             (Value::Record(_self_v), Value::Record(_other_v)) => todo!(),
//             _ => todo!(),
//         }
//     }