#[non_exhaustive]pub struct EntityConfigurationBuilder { /* private fields */ }Expand description
A builder for EntityConfiguration.
Implementations§
Source§impl EntityConfigurationBuilder
impl EntityConfigurationBuilder
Sourcepub fn source_configuration(self, input: SourceConfiguration) -> Self
pub fn source_configuration(self, input: SourceConfiguration) -> Self
The source configuration that defines how to make requests to access this entity's data through the REST API.
Sourcepub fn set_source_configuration(
self,
input: Option<SourceConfiguration>,
) -> Self
pub fn set_source_configuration( self, input: Option<SourceConfiguration>, ) -> Self
The source configuration that defines how to make requests to access this entity's data through the REST API.
Sourcepub fn get_source_configuration(&self) -> &Option<SourceConfiguration>
pub fn get_source_configuration(&self) -> &Option<SourceConfiguration>
The source configuration that defines how to make requests to access this entity's data through the REST API.
Sourcepub fn schema(self, k: impl Into<String>, v: FieldDefinition) -> Self
pub fn schema(self, k: impl Into<String>, v: FieldDefinition) -> Self
Adds a key-value pair to schema.
To override the contents of this collection use set_schema.
The schema definition for this entity, including field names, types, and other metadata that describes the structure of the data.
Sourcepub fn set_schema(self, input: Option<HashMap<String, FieldDefinition>>) -> Self
pub fn set_schema(self, input: Option<HashMap<String, FieldDefinition>>) -> Self
The schema definition for this entity, including field names, types, and other metadata that describes the structure of the data.
Sourcepub fn get_schema(&self) -> &Option<HashMap<String, FieldDefinition>>
pub fn get_schema(&self) -> &Option<HashMap<String, FieldDefinition>>
The schema definition for this entity, including field names, types, and other metadata that describes the structure of the data.
Sourcepub fn build(self) -> EntityConfiguration
pub fn build(self) -> EntityConfiguration
Consumes the builder and constructs a EntityConfiguration.
Trait Implementations§
Source§impl Clone for EntityConfigurationBuilder
impl Clone for EntityConfigurationBuilder
Source§fn clone(&self) -> EntityConfigurationBuilder
fn clone(&self) -> EntityConfigurationBuilder
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 EntityConfigurationBuilder
impl Debug for EntityConfigurationBuilder
Source§impl Default for EntityConfigurationBuilder
impl Default for EntityConfigurationBuilder
Source§fn default() -> EntityConfigurationBuilder
fn default() -> EntityConfigurationBuilder
Source§impl PartialEq for EntityConfigurationBuilder
impl PartialEq for EntityConfigurationBuilder
Source§fn eq(&self, other: &EntityConfigurationBuilder) -> bool
fn eq(&self, other: &EntityConfigurationBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EntityConfigurationBuilder
Auto Trait Implementations§
impl Freeze for EntityConfigurationBuilder
impl RefUnwindSafe for EntityConfigurationBuilder
impl Send for EntityConfigurationBuilder
impl Sync for EntityConfigurationBuilder
impl Unpin for EntityConfigurationBuilder
impl UnsafeUnpin for EntityConfigurationBuilder
impl UnwindSafe for EntityConfigurationBuilder
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