#[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 ==
.