pub struct Request {
pub method: Method,
pub upsert: bool,
pub path: Vec<String>,
pub auth: Option<Auth>,
pub time: Timestamp,
pub resource: Option<Document>,
pub query: Option<Query>,
}Expand description
One request, as rules see it.
Fields§
§method: Method§upsert: boolA create or an update without an existence precondition (a set, a patch, a transform):
whether the document exists chose the method. A denial then also lists the statements of
the other of the two, which cannot allow the write (tools/oracle/rules_writes.py,
rules_denials.py).
path: Vec<String>The path checked, from databases (a document, or for a list its collection).
auth: Option<Auth>§time: Timestamp§resource: Option<Document>The document as it would be after a create or an update; None otherwise.
query: Option<Query>Trait Implementations§
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more