#[non_exhaustive]pub struct CodegenJobGenericDataSchema {
pub data_source_type: CodegenJobGenericDataSourceType,
pub models: HashMap<String, CodegenGenericDataModel>,
pub enums: HashMap<String, CodegenGenericDataEnum>,
pub non_models: HashMap<String, CodegenGenericDataNonModel>,
}Expand description
Describes the data schema for a code generation job.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data_source_type: CodegenJobGenericDataSourceTypeThe type of the data source for the schema. Currently, the only valid value is an Amplify DataStore.
models: HashMap<String, CodegenGenericDataModel>The name of a CodegenGenericDataModel.
enums: HashMap<String, CodegenGenericDataEnum>The name of a CodegenGenericDataEnum.
non_models: HashMap<String, CodegenGenericDataNonModel>The name of a CodegenGenericDataNonModel.
Implementations§
source§impl CodegenJobGenericDataSchema
impl CodegenJobGenericDataSchema
sourcepub fn data_source_type(&self) -> &CodegenJobGenericDataSourceType
pub fn data_source_type(&self) -> &CodegenJobGenericDataSourceType
The type of the data source for the schema. Currently, the only valid value is an Amplify DataStore.
sourcepub fn models(&self) -> &HashMap<String, CodegenGenericDataModel>
pub fn models(&self) -> &HashMap<String, CodegenGenericDataModel>
The name of a CodegenGenericDataModel.
sourcepub fn enums(&self) -> &HashMap<String, CodegenGenericDataEnum>
pub fn enums(&self) -> &HashMap<String, CodegenGenericDataEnum>
The name of a CodegenGenericDataEnum.
sourcepub fn non_models(&self) -> &HashMap<String, CodegenGenericDataNonModel>
pub fn non_models(&self) -> &HashMap<String, CodegenGenericDataNonModel>
The name of a CodegenGenericDataNonModel.
source§impl CodegenJobGenericDataSchema
impl CodegenJobGenericDataSchema
sourcepub fn builder() -> CodegenJobGenericDataSchemaBuilder
pub fn builder() -> CodegenJobGenericDataSchemaBuilder
Creates a new builder-style object to manufacture CodegenJobGenericDataSchema.
Trait Implementations§
source§impl Clone for CodegenJobGenericDataSchema
impl Clone for CodegenJobGenericDataSchema
source§fn clone(&self) -> CodegenJobGenericDataSchema
fn clone(&self) -> CodegenJobGenericDataSchema
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CodegenJobGenericDataSchema
impl Debug for CodegenJobGenericDataSchema
source§impl PartialEq for CodegenJobGenericDataSchema
impl PartialEq for CodegenJobGenericDataSchema
source§fn eq(&self, other: &CodegenJobGenericDataSchema) -> bool
fn eq(&self, other: &CodegenJobGenericDataSchema) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CodegenJobGenericDataSchema
Auto Trait Implementations§
impl Freeze for CodegenJobGenericDataSchema
impl RefUnwindSafe for CodegenJobGenericDataSchema
impl Send for CodegenJobGenericDataSchema
impl Sync for CodegenJobGenericDataSchema
impl Unpin for CodegenJobGenericDataSchema
impl UnwindSafe for CodegenJobGenericDataSchema
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.