pub struct ToolProxyResponse {
pub data: Value,
pub status: u16,
pub headers: Option<Value>,
pub error: Option<String>,
}Expand description
Response from a proxy request
Fields§
§data: ValueResponse data from the external API
status: u16HTTP status code
headers: Option<Value>Response headers
error: Option<String>Error message if request failed
Trait Implementations§
Source§impl Clone for ToolProxyResponse
impl Clone for ToolProxyResponse
Source§fn clone(&self) -> ToolProxyResponse
fn clone(&self) -> ToolProxyResponse
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 ToolProxyResponse
impl Debug for ToolProxyResponse
Source§impl<'de> Deserialize<'de> for ToolProxyResponse
impl<'de> Deserialize<'de> for ToolProxyResponse
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
Auto Trait Implementations§
impl Freeze for ToolProxyResponse
impl RefUnwindSafe for ToolProxyResponse
impl Send for ToolProxyResponse
impl Sync for ToolProxyResponse
impl Unpin for ToolProxyResponse
impl UnsafeUnpin for ToolProxyResponse
impl UnwindSafe for ToolProxyResponse
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