pub struct StoredGatewayResponse { /* private fields */ }Expand description
A stored response object linking a response id to its content-addressed
GatewayResponse and the records that produced it.
Implementations§
Source§impl StoredGatewayResponse
impl StoredGatewayResponse
Sourcepub fn new(
response_id: impl Into<String>,
content_id: ContentId,
response: GatewayResponse,
) -> Self
pub fn new( response_id: impl Into<String>, content_id: ContentId, response: GatewayResponse, ) -> Self
Creates a stored response with no linked request, run, events, or parent.
Sourcepub fn response_id(&self) -> &str
pub fn response_id(&self) -> &str
Returns the public response identifier.
Sourcepub fn content_id(&self) -> &ContentId
pub fn content_id(&self) -> &ContentId
Returns the content id of the stored GatewayResponse.
Sourcepub fn response(&self) -> &GatewayResponse
pub fn response(&self) -> &GatewayResponse
Returns the stored response value.
Trait Implementations§
Source§impl Clone for StoredGatewayResponse
impl Clone for StoredGatewayResponse
Source§fn clone(&self) -> StoredGatewayResponse
fn clone(&self) -> StoredGatewayResponse
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 moreSource§impl Debug for StoredGatewayResponse
impl Debug for StoredGatewayResponse
impl Eq for StoredGatewayResponse
Source§impl PartialEq for StoredGatewayResponse
impl PartialEq for StoredGatewayResponse
Source§fn eq(&self, other: &StoredGatewayResponse) -> bool
fn eq(&self, other: &StoredGatewayResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StoredGatewayResponse
Auto Trait Implementations§
impl Freeze for StoredGatewayResponse
impl RefUnwindSafe for StoredGatewayResponse
impl Send for StoredGatewayResponse
impl Sync for StoredGatewayResponse
impl Unpin for StoredGatewayResponse
impl UnsafeUnpin for StoredGatewayResponse
impl UnwindSafe for StoredGatewayResponse
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