pub struct ResponseConfig {
pub items_path: String,
pub content_type: Option<ContentTypeOverride>,
pub mappings: Vec<ElementMappingConfig>,
}Expand description
Response parsing configuration.
Fields§
§items_path: StringJSONPath expression to locate the array of items in the response. Use “$” if the response is a top-level array.
content_type: Option<ContentTypeOverride>Content type override (auto-detected from Content-Type header if not set).
mappings: Vec<ElementMappingConfig>Element mapping configurations.
Trait Implementations§
Source§impl Clone for ResponseConfig
impl Clone for ResponseConfig
Source§fn clone(&self) -> ResponseConfig
fn clone(&self) -> ResponseConfig
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 ResponseConfig
impl Debug for ResponseConfig
Source§impl<'de> Deserialize<'de> for ResponseConfig
impl<'de> Deserialize<'de> for ResponseConfig
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 ResponseConfig
impl PartialEq for ResponseConfig
Source§fn eq(&self, other: &ResponseConfig) -> bool
fn eq(&self, other: &ResponseConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResponseConfig
impl Serialize for ResponseConfig
impl StructuralPartialEq for ResponseConfig
Auto Trait Implementations§
impl Freeze for ResponseConfig
impl RefUnwindSafe for ResponseConfig
impl Send for ResponseConfig
impl Sync for ResponseConfig
impl Unpin for ResponseConfig
impl UnsafeUnpin for ResponseConfig
impl UnwindSafe for ResponseConfig
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