reywen_http::DeltaError is the enum in Reywen's code that is meant to be used as an error result when doing fetch requests or such. It's quite helpful to have it in the frontend code instead of giving a string. As it can list what came back from the server, status code, etc.
Two ways of handling it would be:
Returning a custom enum that is deserializable
Manually implementing serde::Deserialize
I'm leaning towards the first option as it is easier for the frontend code to handle.
reywen_http::DeltaError
is the enum in Reywen's code that is meant to be used as an error result when doing fetch requests or such. It's quite helpful to have it in the frontend code instead of giving a string. As it can list what came back from the server, status code, etc.Two ways of handling it would be:
serde::Deserialize
I'm leaning towards the first option as it is easier for the frontend code to handle.