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.
Sourcepub fn owner_key_id(&self) -> Option<&str>
pub fn owner_key_id(&self) -> Option<&str>
Returns the gateway key id that created this response, if any.
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
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.