pub struct ReadEvalRequest {
pub origin: RequestOrigin,
pub codec: Symbol,
pub source: ReadEvalSource,
pub read_policy: ReadPolicy,
pub requires: Vec<CapabilityName>,
pub allow: CapabilitySet,
pub expected_shape: Arc<dyn Shape>,
}Expand description
A single explicit, host-authorized read-eval admission request.
Fields§
§origin: RequestOriginOpen origin data describing who asked for eval.
codec: SymbolCodec symbol used to decode text or bytes sources.
source: ReadEvalSourceSource to decode and evaluate, or an already-decoded expression.
read_policy: ReadPolicyTrusted host-built read policy; never derive this from request text.
requires: Vec<CapabilityName>Capabilities the caller must already hold before eval can run.
allow: CapabilitySetMaximum powers the request allows the eval body to run with.
expected_shape: Arc<dyn Shape>Shape the evaluated result must satisfy before it is admitted.
Auto Trait Implementations§
impl !RefUnwindSafe for ReadEvalRequest
impl !UnwindSafe for ReadEvalRequest
impl Freeze for ReadEvalRequest
impl Send for ReadEvalRequest
impl Sync for ReadEvalRequest
impl Unpin for ReadEvalRequest
impl UnsafeUnpin for ReadEvalRequest
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