pub fn serialize<S>(
    e: &Box<dyn StdError + Send + Sync>,
    serializer: S
) -> Result<S::Ok, S::Error>where
    S: Serializer,