pub struct EndpointConfig {
pub url: String,
pub method: HttpMethod,
pub headers: HashMap<String, String>,
pub body: Option<Value>,
pub auth: Option<AuthConfig>,
pub pagination: Option<PaginationConfig>,
pub response: ResponseConfig,
}Expand description
Configuration for a single HTTP endpoint to bootstrap from.
Fields§
§url: StringThe URL to fetch data from.
method: HttpMethodHTTP method (default: GET).
headers: HashMap<String, String>Additional HTTP headers to include in requests.
body: Option<Value>Optional request body (for POST/PUT methods).
auth: Option<AuthConfig>Authentication configuration.
pagination: Option<PaginationConfig>Pagination configuration.
response: ResponseConfigResponse parsing and element mapping configuration.
Trait Implementations§
Source§impl Clone for EndpointConfig
impl Clone for EndpointConfig
Source§fn clone(&self) -> EndpointConfig
fn clone(&self) -> EndpointConfig
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 EndpointConfig
impl Debug for EndpointConfig
Source§impl<'de> Deserialize<'de> for EndpointConfig
impl<'de> Deserialize<'de> for EndpointConfig
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 EndpointConfig
impl PartialEq for EndpointConfig
Source§fn eq(&self, other: &EndpointConfig) -> bool
fn eq(&self, other: &EndpointConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EndpointConfig
impl Serialize for EndpointConfig
impl StructuralPartialEq for EndpointConfig
Auto Trait Implementations§
impl Freeze for EndpointConfig
impl RefUnwindSafe for EndpointConfig
impl Send for EndpointConfig
impl Sync for EndpointConfig
impl Unpin for EndpointConfig
impl UnsafeUnpin for EndpointConfig
impl UnwindSafe for EndpointConfig
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