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