pub struct Request {
pub v: u32,
pub target: String,
pub op: String,
pub idempotent: bool,
pub args_hash: Option<String>,
}Expand description
One intercepted call, as submitted by a front end to execute.
Fields§
§v: u32Envelope version; must equal ENVELOPE_VERSION.
target: StringResolved target id, e.g. “api.stripe.com”, “llm:openai”, “py:pipeline.enrich.geocode”. Resolution (globs, METHOD prefixes) happens in the front end/adapter; the core receives the exact policy-table key. (Real-core stretch: core-side pattern matching.)
op: StringHuman-readable operation for traces, e.g. “GET api.stripe.com/v1/charges”.
idempotent: boolFront end’s safety judgment: true if the call is safe to repeat (idempotent method, or an idempotency key was injected). When false, Keel NEVER retries (KEEL-E014) — DX Level 0 hard rule.
args_hash: Option<String>Stable hash of call arguments; cache/journal key material. None disables caching/journaling for the call.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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