#[non_exhaustive]pub struct DataSourceIntrospectionModelFieldTypeBuilder { /* private fields */ }
Expand description
A builder for DataSourceIntrospectionModelFieldType
.
Implementations§
source§impl DataSourceIntrospectionModelFieldTypeBuilder
impl DataSourceIntrospectionModelFieldTypeBuilder
sourcepub fn kind(self, input: impl Into<String>) -> Self
pub fn kind(self, input: impl Into<String>) -> Self
Specifies the classification of data. For example, this could be set to values like Scalar
or NonNull
to indicate a fundamental property of the field.
Valid values include:
-
Scalar
: Indicates the value is a primitive type (scalar). -
NonNull
: Indicates the field cannot benull
. -
List
: Indicates the field contains a list.
sourcepub fn set_kind(self, input: Option<String>) -> Self
pub fn set_kind(self, input: Option<String>) -> Self
Specifies the classification of data. For example, this could be set to values like Scalar
or NonNull
to indicate a fundamental property of the field.
Valid values include:
-
Scalar
: Indicates the value is a primitive type (scalar). -
NonNull
: Indicates the field cannot benull
. -
List
: Indicates the field contains a list.
sourcepub fn get_kind(&self) -> &Option<String>
pub fn get_kind(&self) -> &Option<String>
Specifies the classification of data. For example, this could be set to values like Scalar
or NonNull
to indicate a fundamental property of the field.
Valid values include:
-
Scalar
: Indicates the value is a primitive type (scalar). -
NonNull
: Indicates the field cannot benull
. -
List
: Indicates the field contains a list.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the data type that represents the field. For example, String
is a valid name
value.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the data type that represents the field. For example, String
is a valid name
value.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the data type that represents the field. For example, String
is a valid name
value.
sourcepub fn type(
self,
input: impl Into<Box<DataSourceIntrospectionModelFieldType>>
) -> Self
pub fn type( self, input: impl Into<Box<DataSourceIntrospectionModelFieldType>> ) -> Self
The DataSourceIntrospectionModelFieldType
object data. The type
is only present if DataSourceIntrospectionModelFieldType.kind
is set to NonNull
or List
.
The type
typically contains its own kind
and name
fields to represent the actual type data. For instance, type
could contain a kind
value of Scalar
with a name
value of String
. The values Scalar
and String
will be collectively stored in the values
field.
sourcepub fn set_type(
self,
input: Option<Box<DataSourceIntrospectionModelFieldType>>
) -> Self
pub fn set_type( self, input: Option<Box<DataSourceIntrospectionModelFieldType>> ) -> Self
The DataSourceIntrospectionModelFieldType
object data. The type
is only present if DataSourceIntrospectionModelFieldType.kind
is set to NonNull
or List
.
The type
typically contains its own kind
and name
fields to represent the actual type data. For instance, type
could contain a kind
value of Scalar
with a name
value of String
. The values Scalar
and String
will be collectively stored in the values
field.
sourcepub fn get_type(&self) -> &Option<Box<DataSourceIntrospectionModelFieldType>>
pub fn get_type(&self) -> &Option<Box<DataSourceIntrospectionModelFieldType>>
The DataSourceIntrospectionModelFieldType
object data. The type
is only present if DataSourceIntrospectionModelFieldType.kind
is set to NonNull
or List
.
The type
typically contains its own kind
and name
fields to represent the actual type data. For instance, type
could contain a kind
value of Scalar
with a name
value of String
. The values Scalar
and String
will be collectively stored in the values
field.
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
The values of the type
field. This field represents the AppSync data type equivalent of the introspected field.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
The values of the type
field. This field represents the AppSync data type equivalent of the introspected field.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
The values of the type
field. This field represents the AppSync data type equivalent of the introspected field.
sourcepub fn build(self) -> DataSourceIntrospectionModelFieldType
pub fn build(self) -> DataSourceIntrospectionModelFieldType
Consumes the builder and constructs a DataSourceIntrospectionModelFieldType
.
Trait Implementations§
source§impl Clone for DataSourceIntrospectionModelFieldTypeBuilder
impl Clone for DataSourceIntrospectionModelFieldTypeBuilder
source§fn clone(&self) -> DataSourceIntrospectionModelFieldTypeBuilder
fn clone(&self) -> DataSourceIntrospectionModelFieldTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DataSourceIntrospectionModelFieldTypeBuilder
impl Default for DataSourceIntrospectionModelFieldTypeBuilder
source§fn default() -> DataSourceIntrospectionModelFieldTypeBuilder
fn default() -> DataSourceIntrospectionModelFieldTypeBuilder
source§impl PartialEq for DataSourceIntrospectionModelFieldTypeBuilder
impl PartialEq for DataSourceIntrospectionModelFieldTypeBuilder
source§fn eq(&self, other: &DataSourceIntrospectionModelFieldTypeBuilder) -> bool
fn eq(&self, other: &DataSourceIntrospectionModelFieldTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.