pub struct Check {Show 13 fields
pub kind: CheckKind,
pub id: String,
pub tenant: String,
pub domain: String,
pub type_name: String,
pub aggregate_type: Option<String>,
pub aggregate_id: Option<String>,
pub target: Option<Target>,
pub key: Option<String>,
pub data: Value,
pub request: RequestContext,
pub outcome: Option<CheckOutcome>,
pub store: Option<Store>,
}Expand description
A command, query, cancel, file or cache request a middleware checks, before the kernel accepts
or routes it or after (cancels, file and cache requests: before only): what the handler of
Listener::middleware gets.
Fields§
§kind: CheckKind§id: StringThe command or query ID (a cancel: the scheduled command’s); for a file or cache request, the kernel’s call ID.
tenant: String§domain: String§type_name: StringThe command or query type within the domain (a cancel: the scheduled command’s); for a
file or cache request PutData, GetData, DeleteData, ListData, SetCache,
GetCache or DeleteCache.
aggregate_type: Option<String>Commands and cancels.
aggregate_id: Option<String>Commands and cancels.
target: Option<Target>The aggregate the request is about, its type qualified: a command’s aggregate
(shop.order, o-17; a cancel: the scheduled command’s), or the one a query declares (crate::query’s target,
crate::QuerySchema::target). None for queries that declare none, and for file and
cache requests.
key: Option<String>File and cache requests only: the file’s or value’s key.
data: ValueThe request’s payload; vault fields are null unless the key is granted vault_read.
Value::Null for a file or cache request: the middleware never sees the file or value.
request: RequestContextWho sends it: check permissions here.
outcome: Option<CheckOutcome>After it, what came of the request; before it, None.
store: Option<Store>The listener’s store, if it has one (Listener::store): what the middleware learned
from events, to decide with.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Check
impl !UnwindSafe for Check
impl Forget for Check
impl Freeze for Checkwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<StoredEvent>: Freeze,
*const Requirement is !null: Freeze,
PhantomData<Requirement>: Freeze,
*const ArcInner<Mutex<Option<Connection>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Option<Connection>>>>: Freeze,
*const ArcInner<Atomic<u64>> is !null: Freeze,
PhantomData<ArcInner<Atomic<u64>>>: Freeze,
*const ArcInner<Mutex<()>> is !null: Freeze,
PhantomData<ArcInner<Mutex<()>>>: Freeze,
impl Move for Check
impl Send for Check
impl Sync for Check
impl Unpin for Check
impl UnsafeUnpin for Checkwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<StoredEvent>: UnsafeUnpin,
*const Requirement is !null: UnsafeUnpin,
PhantomData<Requirement>: UnsafeUnpin,
*const ArcInner<Mutex<Option<Connection>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<Connection>>>>: UnsafeUnpin,
*const ArcInner<Atomic<u64>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<u64>>>: UnsafeUnpin,
*const ArcInner<Mutex<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<()>>>: UnsafeUnpin,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request