#[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 ==
.impl StructuralPartialEq for DataSourceIntrospectionModelFieldTypeBuilder
Auto Trait Implementations§
impl Freeze for DataSourceIntrospectionModelFieldTypeBuilder
impl RefUnwindSafe for DataSourceIntrospectionModelFieldTypeBuilder
impl Send for DataSourceIntrospectionModelFieldTypeBuilder
impl Sync for DataSourceIntrospectionModelFieldTypeBuilder
impl Unpin for DataSourceIntrospectionModelFieldTypeBuilder
impl UnwindSafe for DataSourceIntrospectionModelFieldTypeBuilder
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