pub fn json<'a, T: Deserialize<'a>>(&'a self) -> Result<Option<T>, serde_json::Error> {
        if let Some(payload_json) = &self.payload_json {
            serde_json::from_str(payload_json).map(Some)
        } else {
            Ok(None)
        }
    }
/// Extracts the JSON payload belonging to this job (if present).
Extracts the JSON payload belonging to this job (if present).
Extracts the JSON payload belonging to this job ( if present ) .
pub fn json<'a, T: Deserialize<'a>>(&'a self) -> Result<Option<T>, serde_json::Error> {
        if let Some(payload_json) = &self.payload_json {
            serde_json::from_str(payload_json).map(Some)
        } else {
            Ok(None)
        }
    }
pub fn json < ' a , T : Deserialize < ' a > > ( & ' a self ) -> Result < Option < T > , serde_json :: Error > { if let Some ( payload_json ) = & self . payload_json { serde_json :: from_str ( payload_json ) . map ( Some ) } else { Ok ( None ) } }
Extracts the JSON payload belonging to this job (if present).
Extracts the JSON payload belonging to this job ( if present ) .
&'a self
&'a self