pub struct ResponseExecution { /* private fields */ }Expand description
The outcome of executing a gateway run: the wire response plus the content-addressed ledger ids and events it produced.
response_id/response_created_at_ms are only populated by the
/v1/responses engine (which mints a public response object); the other
engines leave them None.
Implementations§
Source§impl GatewayRunExecution
impl GatewayRunExecution
Sourcepub fn response(&self) -> &GatewayResponse
pub fn response(&self) -> &GatewayResponse
Returns the wire response produced by the execution.
Sourcepub fn request_content_id(&self) -> Option<&ContentId>
pub fn request_content_id(&self) -> Option<&ContentId>
Returns the content id of the stored request, if it was recorded.
Sourcepub fn run_content_id(&self) -> Option<&ContentId>
pub fn run_content_id(&self) -> Option<&ContentId>
Returns the content id of the stored run, if it was recorded.
Sourcepub fn event_content_ids(&self) -> &[ContentId]
pub fn event_content_ids(&self) -> &[ContentId]
Returns the content ids of the stored events, in sequence order.
Sourcepub fn events(&self) -> &[GatewayEvent]
pub fn events(&self) -> &[GatewayEvent]
Returns the events emitted during the execution.
Sourcepub fn response_id(&self) -> Option<&str>
pub fn response_id(&self) -> Option<&str>
Returns the generated response id, if a response object was produced.
Sourcepub fn response_created_at_ms(&self) -> Option<u64>
pub fn response_created_at_ms(&self) -> Option<u64>
Returns the response creation timestamp in milliseconds, if set.
Sourcepub fn response_content_id(&self) -> Option<&ContentId>
pub fn response_content_id(&self) -> Option<&ContentId>
Returns the content id of the stored response, if it was recorded.
Trait Implementations§
Source§impl Clone for GatewayRunExecution
impl Clone for GatewayRunExecution
Source§fn clone(&self) -> GatewayRunExecution
fn clone(&self) -> GatewayRunExecution
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more