pub(crate) async fn write_record(
state: &AppState,
did: &str,
client_id: Option<&ClientId>,
collection: &str,
rkey: Option<&str>,
record: Value,
swap: &Swap,
occupied: Occupied,
bytes: usize,
) -> ResponseExpand description
The write both createRecord and putRecord perform.
One function because they are one operation apart from swap and
occupied, and writing the response assembly twice is how the two would
start disagreeing about the shape of a uri.