pub struct ResponseExecution { /* private fields */ }Expand description
Captures the outcome of executing a /v1/responses request: the wire
response plus the content-addressed ledger ids and events it produced.
Implementations§
Source§impl ResponseExecution
impl ResponseExecution
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 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 object, if it was recorded.
Trait Implementations§
Source§impl Clone for ResponseExecution
impl Clone for ResponseExecution
Source§fn clone(&self) -> ResponseExecution
fn clone(&self) -> ResponseExecution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResponseExecution
impl RefUnwindSafe for ResponseExecution
impl Send for ResponseExecution
impl Sync for ResponseExecution
impl Unpin for ResponseExecution
impl UnsafeUnpin for ResponseExecution
impl UnwindSafe for ResponseExecution
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