Refined docs and stuff
Docs link to each other and are generally better
This commit is contained in:
@@ -102,6 +102,14 @@ pub struct UserProps {
|
||||
pub id: i16,
|
||||
}
|
||||
|
||||
/// Represents an error response from the API.
|
||||
///
|
||||
/// This struct is used to deserialize error messages received from the backend API.
|
||||
/// It typically contains a human-readable message and an internal status code.
|
||||
///
|
||||
/// # Fields
|
||||
/// - `message`: A `String` containing a description of the error.
|
||||
/// - `_status`: An internal status code or message, often ignored in frontend display.
|
||||
#[derive(Deserialize, Debug)]
|
||||
struct ApiError {
|
||||
message: String,
|
||||
|
||||
Reference in New Issue
Block a user