pub struct IoCall {
pub namespace: String,
pub request: Value,
pub fact_key: Option<FactKey>,
}Expand description
Opaque IO call surface; collectors define typed adapters on top.
Fields§
§namespace: StringNamespace like “http”, “jsonrpc”, “coingecko”, etc.
request: ValueCanonical JSON request payload (typed by the caller/collector).
fact_key: Option<FactKey>Fact key for recording/replay.
Contract:
- In Live mode, callers SHOULD provide this for replayable IO.
- In Replay mode, deterministic IO MUST provide this (otherwise
IoError::MissingFactKey).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IoCall
impl<'de> Deserialize<'de> for IoCall
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
impl Eq for IoCall
impl StructuralPartialEq for IoCall
Auto Trait Implementations§
impl Freeze for IoCall
impl RefUnwindSafe for IoCall
impl Send for IoCall
impl Sync for IoCall
impl Unpin for IoCall
impl UnsafeUnpin for IoCall
impl UnwindSafe for IoCall
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