#[non_exhaustive]pub struct SourceConfiguration {
pub request_method: Option<HttpMethod>,
pub request_path: Option<String>,
pub request_parameters: Option<Vec<ConnectorProperty>>,
pub response_configuration: Option<ResponseConfiguration>,
pub pagination_configuration: Option<PaginationConfiguration>,
}Expand description
Configuration that defines how to make requests to endpoints, including request methods, paths, parameters, and response handling.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.request_method: Option<HttpMethod>The HTTP method to use for requests to this endpoint, such as GET, POST.
request_path: Option<String>The URL path for the REST endpoint, which may include parameter placeholders that will be replaced with actual values during requests.
request_parameters: Option<Vec<ConnectorProperty>>Configuration for request parameters that should be included in API calls, such as query parameters, headers, or body content.
response_configuration: Option<ResponseConfiguration>Configuration that defines how to parse and extract data from API responses, including success and error handling.
pagination_configuration: Option<PaginationConfiguration>Configuration for handling paginated responses from the REST API, supporting both cursor-based and offset-based pagination strategies.
Implementations§
Source§impl SourceConfiguration
impl SourceConfiguration
Sourcepub fn request_method(&self) -> Option<&HttpMethod>
pub fn request_method(&self) -> Option<&HttpMethod>
The HTTP method to use for requests to this endpoint, such as GET, POST.
Sourcepub fn request_path(&self) -> Option<&str>
pub fn request_path(&self) -> Option<&str>
The URL path for the REST endpoint, which may include parameter placeholders that will be replaced with actual values during requests.
Sourcepub fn request_parameters(&self) -> &[ConnectorProperty]
pub fn request_parameters(&self) -> &[ConnectorProperty]
Configuration for request parameters that should be included in API calls, such as query parameters, headers, or body content.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .request_parameters.is_none().
Sourcepub fn response_configuration(&self) -> Option<&ResponseConfiguration>
pub fn response_configuration(&self) -> Option<&ResponseConfiguration>
Configuration that defines how to parse and extract data from API responses, including success and error handling.
Sourcepub fn pagination_configuration(&self) -> Option<&PaginationConfiguration>
pub fn pagination_configuration(&self) -> Option<&PaginationConfiguration>
Configuration for handling paginated responses from the REST API, supporting both cursor-based and offset-based pagination strategies.
Source§impl SourceConfiguration
impl SourceConfiguration
Sourcepub fn builder() -> SourceConfigurationBuilder
pub fn builder() -> SourceConfigurationBuilder
Creates a new builder-style object to manufacture SourceConfiguration.
Trait Implementations§
Source§impl Clone for SourceConfiguration
impl Clone for SourceConfiguration
Source§fn clone(&self) -> SourceConfiguration
fn clone(&self) -> SourceConfiguration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceConfiguration
impl Debug for SourceConfiguration
Source§impl PartialEq for SourceConfiguration
impl PartialEq for SourceConfiguration
Source§fn eq(&self, other: &SourceConfiguration) -> bool
fn eq(&self, other: &SourceConfiguration) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceConfiguration
Auto Trait Implementations§
impl Freeze for SourceConfiguration
impl RefUnwindSafe for SourceConfiguration
impl Send for SourceConfiguration
impl Sync for SourceConfiguration
impl Unpin for SourceConfiguration
impl UnsafeUnpin for SourceConfiguration
impl UnwindSafe for SourceConfiguration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more