Function scl_core::http::retry_get_json
source · pub async fn retry_get_json<D: DeserializeOwned>(
uri: impl AsRef<str>
) -> Result<D>
Expand description
重试获取 JSON 对象
返回的数据结构需要实现 serde::de::DeserializeOwned
pub async fn retry_get_json<D: DeserializeOwned>(
uri: impl AsRef<str>
) -> Result<D>
重试获取 JSON 对象
返回的数据结构需要实现 serde::de::DeserializeOwned