pub fn serialize<S: Serializer>(a: &Amount, s: S) -> Result<S::Ok, S::Error>