Skip to main content

patch

Attribute Macro patch 

Source
#[patch]
Expand description

Shorthand for #[orpc::route(method = "PATCH", path = "...")].

§Syntax

#[orpc::patch("/planet/{id}")]
async fn patch_planet(
    State(db): State<Db>,
    Json(input): Json<PatchInput>,
) -> Result<Json<Planet>, AppError> {
    // ...
}