pub fn serialize<S>(x: &Utxo, serializer: S) -> Result<S::Ok, S::Error>where
    S: Serializer,