#[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 ==.impl StructuralPartialEq for DataSourceIntrospectionModel
Auto Trait Implementations§
impl Freeze for DataSourceIntrospectionModel
impl RefUnwindSafe for DataSourceIntrospectionModel
impl Send for DataSourceIntrospectionModel
impl Sync for DataSourceIntrospectionModel
impl Unpin for DataSourceIntrospectionModel
impl UnwindSafe for DataSourceIntrospectionModel
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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