Toast message when scheduling a recipe
This commit is contained in:
parent
fbef990022
commit
ccb1248da3
11 changed files with 168 additions and 66 deletions
|
|
@ -42,6 +42,13 @@ pub fn ron_error(status: StatusCode, message: &str) -> impl IntoResponse {
|
|||
)
|
||||
}
|
||||
|
||||
pub fn ron_response_ok<T>(ron: T) -> impl IntoResponse
|
||||
where
|
||||
T: Serialize,
|
||||
{
|
||||
ron_response(StatusCode::OK, ron)
|
||||
}
|
||||
|
||||
pub fn ron_response<T>(status: StatusCode, ron: T) -> impl IntoResponse
|
||||
where
|
||||
T: Serialize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue