#[non_exhaustive]pub struct DataSourceIntrospectionModel {
pub name: Option<String>,
pub fields: Option<Vec<DataSourceIntrospectionModelField>>,
pub primary_key: Option<DataSourceIntrospectionModelIndex>,
pub indexes: Option<Vec<DataSourceIntrospectionModelIndex>>,
pub sdl: Option<String>,
}
Expand description
Contains the introspected data that was retrieved from the data source.
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.name: Option<String>
The name of the model. For example, this could be the name of a single table in a database.
fields: Option<Vec<DataSourceIntrospectionModelField>>
The DataSourceIntrospectionModelField
object data.
primary_key: Option<DataSourceIntrospectionModelIndex>
The primary key stored as a DataSourceIntrospectionModelIndex
object.
indexes: Option<Vec<DataSourceIntrospectionModelIndex>>
The array of DataSourceIntrospectionModelIndex
objects.
sdl: 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.
Implementations§
source§impl DataSourceIntrospectionModel
impl DataSourceIntrospectionModel
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the model. For example, this could be the name of a single table in a database.
sourcepub fn fields(&self) -> &[DataSourceIntrospectionModelField]
pub fn fields(&self) -> &[DataSourceIntrospectionModelField]
The DataSourceIntrospectionModelField
object data.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .fields.is_none()
.
sourcepub fn primary_key(&self) -> Option<&DataSourceIntrospectionModelIndex>
pub fn primary_key(&self) -> Option<&DataSourceIntrospectionModelIndex>
The primary key stored as a DataSourceIntrospectionModelIndex
object.
sourcepub fn indexes(&self) -> &[DataSourceIntrospectionModelIndex]
pub fn indexes(&self) -> &[DataSourceIntrospectionModelIndex]
The array of DataSourceIntrospectionModelIndex
objects.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .indexes.is_none()
.
source§impl DataSourceIntrospectionModel
impl DataSourceIntrospectionModel
sourcepub fn builder() -> DataSourceIntrospectionModelBuilder
pub fn builder() -> DataSourceIntrospectionModelBuilder
Creates a new builder-style object to manufacture DataSourceIntrospectionModel
.
Trait Implementations§
source§impl Clone for DataSourceIntrospectionModel
impl Clone for DataSourceIntrospectionModel
source§fn clone(&self) -> DataSourceIntrospectionModel
fn clone(&self) -> DataSourceIntrospectionModel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataSourceIntrospectionModel
impl Debug for DataSourceIntrospectionModel
source§impl PartialEq for DataSourceIntrospectionModel
impl PartialEq for DataSourceIntrospectionModel
source§fn eq(&self, other: &DataSourceIntrospectionModel) -> bool
fn eq(&self, other: &DataSourceIntrospectionModel) -> bool
self
and other
values to be equal, and is used
by ==
.