#[non_exhaustive]pub struct DataSourceIntrospectionModelBuilder { /* private fields */ }Expand description
A builder for DataSourceIntrospectionModel.
Implementations§
source§impl DataSourceIntrospectionModelBuilder
impl DataSourceIntrospectionModelBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the model. For example, this could be the name of a single table in a database.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the model. For example, this could be the name of a single table in a database.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the model. For example, this could be the name of a single table in a database.
sourcepub fn fields(self, input: DataSourceIntrospectionModelField) -> Self
pub fn fields(self, input: DataSourceIntrospectionModelField) -> Self
Appends an item to fields.
To override the contents of this collection use set_fields.
The DataSourceIntrospectionModelField object data.
sourcepub fn set_fields(
self,
input: Option<Vec<DataSourceIntrospectionModelField>>
) -> Self
pub fn set_fields( self, input: Option<Vec<DataSourceIntrospectionModelField>> ) -> Self
The DataSourceIntrospectionModelField object data.
sourcepub fn get_fields(&self) -> &Option<Vec<DataSourceIntrospectionModelField>>
pub fn get_fields(&self) -> &Option<Vec<DataSourceIntrospectionModelField>>
The DataSourceIntrospectionModelField object data.
sourcepub fn primary_key(self, input: DataSourceIntrospectionModelIndex) -> Self
pub fn primary_key(self, input: DataSourceIntrospectionModelIndex) -> Self
The primary key stored as a DataSourceIntrospectionModelIndex object.
sourcepub fn set_primary_key(
self,
input: Option<DataSourceIntrospectionModelIndex>
) -> Self
pub fn set_primary_key( self, input: Option<DataSourceIntrospectionModelIndex> ) -> Self
The primary key stored as a DataSourceIntrospectionModelIndex object.
sourcepub fn get_primary_key(&self) -> &Option<DataSourceIntrospectionModelIndex>
pub fn get_primary_key(&self) -> &Option<DataSourceIntrospectionModelIndex>
The primary key stored as a DataSourceIntrospectionModelIndex object.
sourcepub fn indexes(self, input: DataSourceIntrospectionModelIndex) -> Self
pub fn indexes(self, input: DataSourceIntrospectionModelIndex) -> Self
Appends an item to indexes.
To override the contents of this collection use set_indexes.
The array of DataSourceIntrospectionModelIndex objects.
sourcepub fn set_indexes(
self,
input: Option<Vec<DataSourceIntrospectionModelIndex>>
) -> Self
pub fn set_indexes( self, input: Option<Vec<DataSourceIntrospectionModelIndex>> ) -> Self
The array of DataSourceIntrospectionModelIndex objects.
sourcepub fn get_indexes(&self) -> &Option<Vec<DataSourceIntrospectionModelIndex>>
pub fn get_indexes(&self) -> &Option<Vec<DataSourceIntrospectionModelIndex>>
The array of DataSourceIntrospectionModelIndex objects.
sourcepub fn sdl(self, input: impl Into<String>) -> Self
pub fn sdl(self, input: impl Into<String>) -> Self
Contains the output of the SDL that was generated from the introspected types. This is controlled by the includeModelsSDL parameter of the GetDataSourceIntrospection operation.
sourcepub fn set_sdl(self, input: Option<String>) -> Self
pub fn set_sdl(self, input: Option<String>) -> Self
Contains the output of the SDL that was generated from the introspected types. This is controlled by the includeModelsSDL parameter of the GetDataSourceIntrospection operation.
sourcepub fn get_sdl(&self) -> &Option<String>
pub fn get_sdl(&self) -> &Option<String>
Contains the output of the SDL that was generated from the introspected types. This is controlled by the includeModelsSDL parameter of the GetDataSourceIntrospection operation.
sourcepub fn build(self) -> DataSourceIntrospectionModel
pub fn build(self) -> DataSourceIntrospectionModel
Consumes the builder and constructs a DataSourceIntrospectionModel.
Trait Implementations§
source§impl Clone for DataSourceIntrospectionModelBuilder
impl Clone for DataSourceIntrospectionModelBuilder
source§fn clone(&self) -> DataSourceIntrospectionModelBuilder
fn clone(&self) -> DataSourceIntrospectionModelBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DataSourceIntrospectionModelBuilder
impl Default for DataSourceIntrospectionModelBuilder
source§fn default() -> DataSourceIntrospectionModelBuilder
fn default() -> DataSourceIntrospectionModelBuilder
source§impl PartialEq for DataSourceIntrospectionModelBuilder
impl PartialEq for DataSourceIntrospectionModelBuilder
source§fn eq(&self, other: &DataSourceIntrospectionModelBuilder) -> bool
fn eq(&self, other: &DataSourceIntrospectionModelBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DataSourceIntrospectionModelBuilder
Auto Trait Implementations§
impl Freeze for DataSourceIntrospectionModelBuilder
impl RefUnwindSafe for DataSourceIntrospectionModelBuilder
impl Send for DataSourceIntrospectionModelBuilder
impl Sync for DataSourceIntrospectionModelBuilder
impl Unpin for DataSourceIntrospectionModelBuilder
impl UnwindSafe for DataSourceIntrospectionModelBuilder
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> 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