Skip to main content

patch

Attribute Macro patch 

Source
#[patch]
Expand description

Registers a PATCH route handler.

§Example

#[patch("/users/:id")]
async fn update_user(Path(id): Path<u64>) -> Json<User> { /* ... */ }

See get for syntax details including the optional group parameter.