Skip to main content

patch

Attribute Macro patch 

Source
#[patch]
Expand description

Define a PATCH route handler

§Example

#[patch("/users/:id")]
async fn patch_user(path: Path<String>, body: Json<UserPatch>) -> Json<User> {
    // handler code
}