Skip to main content

path_id

Function path_id 

Source
pub fn path_id(request: &Request) -> Option<&str>
Available on crate feature http only.
Expand description

The id a document addresses, from the request path.

A PATCH addresses a row that already exists, and the path’s id is authoritative over anything the body says — so this is what an update’s FromRequest should use rather than reading data.id.