Skip to main content

Module write_context

Module write_context 

Source
Expand description

Who is making a write, carried to the table’s lifecycle hooks.

A host (an API server handling a request, a desktop app acting for its user) wraps the work in WriteContext::scope; every write awaited inside it hands the context to its hooks through their context field. Vantage doesn’t interpret it: principal is whatever record the host identifies the actor with, and group ties together everything one request or action run caused.

Structs§

WriteContext
Built with WriteContext::new and the with_* builders, so a field added later (request data, say) doesn’t break existing hosts.