#[non_exhaustive]pub struct RestConfiguration {
pub global_source_configuration: Option<SourceConfiguration>,
pub validation_endpoint_configuration: Option<SourceConfiguration>,
pub entity_configurations: Option<HashMap<String, EntityConfiguration>>,
}Expand description
Configuration that defines HTTP request and response handling, validation endpoints, and entity configurations for REST API interactions.
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.global_source_configuration: Option<SourceConfiguration>Global configuration settings that apply to all REST API requests for this connection type, including common request methods, paths, and parameters.
validation_endpoint_configuration: Option<SourceConfiguration>Configuration for the endpoint used to validate connection credentials and test connectivity during connection creation.
entity_configurations: Option<HashMap<String, EntityConfiguration>>A map of entity configurations that define how to interact with different data entities available through the REST API, including their schemas and access patterns.
Implementations§
Source§impl RestConfiguration
impl RestConfiguration
Sourcepub fn global_source_configuration(&self) -> Option<&SourceConfiguration>
pub fn global_source_configuration(&self) -> Option<&SourceConfiguration>
Global configuration settings that apply to all REST API requests for this connection type, including common request methods, paths, and parameters.
Sourcepub fn validation_endpoint_configuration(&self) -> Option<&SourceConfiguration>
pub fn validation_endpoint_configuration(&self) -> Option<&SourceConfiguration>
Configuration for the endpoint used to validate connection credentials and test connectivity during connection creation.
Sourcepub fn entity_configurations(
&self,
) -> Option<&HashMap<String, EntityConfiguration>>
pub fn entity_configurations( &self, ) -> Option<&HashMap<String, EntityConfiguration>>
A map of entity configurations that define how to interact with different data entities available through the REST API, including their schemas and access patterns.
Source§impl RestConfiguration
impl RestConfiguration
Sourcepub fn builder() -> RestConfigurationBuilder
pub fn builder() -> RestConfigurationBuilder
Creates a new builder-style object to manufacture RestConfiguration.
Trait Implementations§
Source§impl Clone for RestConfiguration
impl Clone for RestConfiguration
Source§fn clone(&self) -> RestConfiguration
fn clone(&self) -> RestConfiguration
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 RestConfiguration
impl Debug for RestConfiguration
Source§impl PartialEq for RestConfiguration
impl PartialEq for RestConfiguration
Source§fn eq(&self, other: &RestConfiguration) -> bool
fn eq(&self, other: &RestConfiguration) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RestConfiguration
Auto Trait Implementations§
impl Freeze for RestConfiguration
impl RefUnwindSafe for RestConfiguration
impl Send for RestConfiguration
impl Sync for RestConfiguration
impl Unpin for RestConfiguration
impl UnsafeUnpin for RestConfiguration
impl UnwindSafe for RestConfiguration
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