pub struct PluginExecutionRequest { /* private fields */ }Implementations§
Source§impl PluginExecutionRequest
impl PluginExecutionRequest
Sourcepub fn new(
subject: EntityId,
authorized_origin: Url,
case_id: impl Into<String>,
broker: Arc<dyn PluginRequestBroker>,
) -> Result<Self, PluginError>
pub fn new( subject: EntityId, authorized_origin: Url, case_id: impl Into<String>, broker: Arc<dyn PluginRequestBroker>, ) -> Result<Self, PluginError>
Creates a request with finite defaults, empty input, no confidence, and the default secret redaction policy.
Sourcepub fn with_input(self, input: Vec<u8>) -> Result<Self, PluginError>
pub fn with_input(self, input: Vec<u8>) -> Result<Self, PluginError>
Sets opaque bounded invocation input.
Sourcepub fn with_budget(self, budget: PluginBudget) -> Result<Self, PluginError>
pub fn with_budget(self, budget: PluginBudget) -> Result<Self, PluginError>
Replaces the immutable budget snapshot.
Sourcepub fn restrict_response_body_bytes(self, maximum: u64) -> Self
pub fn restrict_response_body_bytes(self, maximum: u64) -> Self
Narrows response capture to a host execution allowance.
This operation can only reduce both the per-response and cumulative ceilings already selected by the request provider.
Sourcepub fn with_cancellation(self, cancellation: CancellationToken) -> Self
pub fn with_cancellation(self, cancellation: CancellationToken) -> Self
Uses a host-owned cancellation token; the invocation receives a child.
Sourcepub fn with_redaction(self, redaction: Arc<dyn PluginRedactionPolicy>) -> Self
pub fn with_redaction(self, redaction: Arc<dyn PluginRedactionPolicy>) -> Self
Replaces the host redaction policy.
Sourcepub fn with_reliability(self, reliability: ConfidenceScore) -> Self
pub fn with_reliability(self, reliability: ConfidenceScore) -> Self
Sets host-assessed source reliability without granting claim authority.
Exact authorized HTTP(S) origin selected by the host.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PluginExecutionRequest
impl !UnwindSafe for PluginExecutionRequest
impl Freeze for PluginExecutionRequest
impl Send for PluginExecutionRequest
impl Sync for PluginExecutionRequest
impl Unpin for PluginExecutionRequest
impl UnsafeUnpin for PluginExecutionRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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