pub struct ReadEvalRequest {
pub origin: RequestOrigin,
pub codec: Symbol,
pub source: ReadEvalSource,
pub authority: SourceAuthority,
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.
Trusted host authority governing source admission and evaluation.
expected_shape: Arc<dyn Shape>Shape the evaluated result must satisfy before it is admitted.
Implementations§
Source§impl ReadEvalRequest
impl ReadEvalRequest
Sourcepub fn new(
origin: RequestOrigin,
codec: Symbol,
source: ReadEvalSource,
authority: SourceAuthority,
expected_shape: Arc<dyn Shape>,
) -> Self
pub fn new( origin: RequestOrigin, codec: Symbol, source: ReadEvalSource, authority: SourceAuthority, expected_shape: Arc<dyn Shape>, ) -> Self
Builds a request whose source authority is explicit and indivisible.
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