Struct aws_sdk_appsync::types::Type
source · #[non_exhaustive]pub struct Type {
pub name: Option<String>,
pub description: Option<String>,
pub arn: Option<String>,
pub definition: Option<String>,
pub format: Option<TypeDefinitionFormat>,
}
Expand description
Describes a type.
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.name: Option<String>
The type name.
description: Option<String>
The type description.
arn: Option<String>
The type Amazon Resource Name (ARN).
definition: Option<String>
The type definition.
format: Option<TypeDefinitionFormat>
The type format: SDL or JSON.
Implementations§
source§impl Type
impl Type
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The type description.
sourcepub fn definition(&self) -> Option<&str>
pub fn definition(&self) -> Option<&str>
The type definition.
sourcepub fn format(&self) -> Option<&TypeDefinitionFormat>
pub fn format(&self) -> Option<&TypeDefinitionFormat>
The type format: SDL or JSON.
Trait Implementations§
source§impl PartialEq for Type
impl PartialEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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>
Creates a shared type from an unshared type.