Skip to main content

write_doc

Function write_doc 

Source
pub async fn write_doc(
    __arg0: State<Shared>,
    headers: HeaderMap,
    __arg2: Path<String>,
    body: Body,
) -> Result<Response, Error>
Expand description

Write one document.

Refused unless the revision is editable AND the caller holds its lock. Together those two checks are the immutability rule: there is no path by which a released revision’s bytes change.