pub struct ChainResponse {
pub status: u16,
pub headers: HashMap<String, String>,
pub body: Option<Value>,
pub duration_ms: u64,
pub executed_at: String,
pub error: Option<String>,
}
Expand description
Response from a chain request
Fields§
§status: u16
HTTP status code
headers: HashMap<String, String>
Response headers
body: Option<Value>
Response body
duration_ms: u64
Execution duration in milliseconds
executed_at: String
Timestamp when the request was executed
error: Option<String>
Any error that occurred
Trait Implementations§
Source§impl Clone for ChainResponse
impl Clone for ChainResponse
Source§fn clone(&self) -> ChainResponse
fn clone(&self) -> ChainResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 ChainResponse
impl Debug for ChainResponse
Source§impl<'de> Deserialize<'de> for ChainResponse
impl<'de> Deserialize<'de> for ChainResponse
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
Source§impl PartialEq for ChainResponse
impl PartialEq for ChainResponse
Source§impl Serialize for ChainResponse
impl Serialize for ChainResponse
impl StructuralPartialEq for ChainResponse
Auto Trait Implementations§
impl Freeze for ChainResponse
impl RefUnwindSafe for ChainResponse
impl Send for ChainResponse
impl Sync for ChainResponse
impl Unpin for ChainResponse
impl UnwindSafe for ChainResponse
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