#[non_exhaustive]pub struct RestConfigurationBuilder { /* private fields */ }Expand description
A builder for RestConfiguration.
Implementations§
Source§impl RestConfigurationBuilder
impl RestConfigurationBuilder
Sourcepub fn global_source_configuration(self, input: SourceConfiguration) -> Self
pub fn global_source_configuration(self, input: SourceConfiguration) -> Self
Global configuration settings that apply to all REST API requests for this connection type, including common request methods, paths, and parameters.
Sourcepub fn set_global_source_configuration(
self,
input: Option<SourceConfiguration>,
) -> Self
pub fn set_global_source_configuration( self, input: Option<SourceConfiguration>, ) -> Self
Global configuration settings that apply to all REST API requests for this connection type, including common request methods, paths, and parameters.
Sourcepub fn get_global_source_configuration(&self) -> &Option<SourceConfiguration>
pub fn get_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,
input: SourceConfiguration,
) -> Self
pub fn validation_endpoint_configuration( self, input: SourceConfiguration, ) -> Self
Configuration for the endpoint used to validate connection credentials and test connectivity during connection creation.
Sourcepub fn set_validation_endpoint_configuration(
self,
input: Option<SourceConfiguration>,
) -> Self
pub fn set_validation_endpoint_configuration( self, input: Option<SourceConfiguration>, ) -> Self
Configuration for the endpoint used to validate connection credentials and test connectivity during connection creation.
Sourcepub fn get_validation_endpoint_configuration(
&self,
) -> &Option<SourceConfiguration>
pub fn get_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,
k: impl Into<String>,
v: EntityConfiguration,
) -> Self
pub fn entity_configurations( self, k: impl Into<String>, v: EntityConfiguration, ) -> Self
Adds a key-value pair to entity_configurations.
To override the contents of this collection use set_entity_configurations.
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.
Sourcepub fn set_entity_configurations(
self,
input: Option<HashMap<String, EntityConfiguration>>,
) -> Self
pub fn set_entity_configurations( self, input: Option<HashMap<String, EntityConfiguration>>, ) -> Self
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.
Sourcepub fn get_entity_configurations(
&self,
) -> &Option<HashMap<String, EntityConfiguration>>
pub fn get_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.
Sourcepub fn build(self) -> RestConfiguration
pub fn build(self) -> RestConfiguration
Consumes the builder and constructs a RestConfiguration.
Trait Implementations§
Source§impl Clone for RestConfigurationBuilder
impl Clone for RestConfigurationBuilder
Source§fn clone(&self) -> RestConfigurationBuilder
fn clone(&self) -> RestConfigurationBuilder
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 RestConfigurationBuilder
impl Debug for RestConfigurationBuilder
Source§impl Default for RestConfigurationBuilder
impl Default for RestConfigurationBuilder
Source§fn default() -> RestConfigurationBuilder
fn default() -> RestConfigurationBuilder
Source§impl PartialEq for RestConfigurationBuilder
impl PartialEq for RestConfigurationBuilder
Source§fn eq(&self, other: &RestConfigurationBuilder) -> bool
fn eq(&self, other: &RestConfigurationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RestConfigurationBuilder
Auto Trait Implementations§
impl Freeze for RestConfigurationBuilder
impl RefUnwindSafe for RestConfigurationBuilder
impl Send for RestConfigurationBuilder
impl Sync for RestConfigurationBuilder
impl Unpin for RestConfigurationBuilder
impl UnsafeUnpin for RestConfigurationBuilder
impl UnwindSafe for RestConfigurationBuilder
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