Struct aws_sdk_amplifyuibuilder::types::SectionalElement
source · #[non_exhaustive]pub struct SectionalElement {
pub type: String,
pub position: Option<FieldPosition>,
pub text: Option<String>,
pub level: Option<i32>,
pub orientation: Option<String>,
pub excluded: Option<bool>,
}Expand description
Stores the configuration information for a visual helper element for a form. A sectional element can be a header, a text block, or a divider. These elements are static and not associated with any data.
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.type: StringThe type of sectional element. Valid values are Heading, Text, and Divider.
position: Option<FieldPosition>Specifies the position of the text in a field for a Text sectional element.
text: Option<String>The text for a Text sectional element.
level: Option<i32>Specifies the size of the font for a Heading sectional element. Valid values are 1 | 2 | 3 | 4 | 5 | 6.
orientation: Option<String>Specifies the orientation for a Divider sectional element. Valid values are horizontal or vertical.
excluded: Option<bool>Excludes a sectional element that was generated by default for a specified data model.
Implementations§
source§impl SectionalElement
impl SectionalElement
sourcepub fn type(&self) -> &str
pub fn type(&self) -> &str
The type of sectional element. Valid values are Heading, Text, and Divider.
sourcepub fn position(&self) -> Option<&FieldPosition>
pub fn position(&self) -> Option<&FieldPosition>
Specifies the position of the text in a field for a Text sectional element.
sourcepub fn level(&self) -> Option<i32>
pub fn level(&self) -> Option<i32>
Specifies the size of the font for a Heading sectional element. Valid values are 1 | 2 | 3 | 4 | 5 | 6.
sourcepub fn orientation(&self) -> Option<&str>
pub fn orientation(&self) -> Option<&str>
Specifies the orientation for a Divider sectional element. Valid values are horizontal or vertical.
source§impl SectionalElement
impl SectionalElement
sourcepub fn builder() -> SectionalElementBuilder
pub fn builder() -> SectionalElementBuilder
Creates a new builder-style object to manufacture SectionalElement.
Trait Implementations§
source§impl Clone for SectionalElement
impl Clone for SectionalElement
source§fn clone(&self) -> SectionalElement
fn clone(&self) -> SectionalElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SectionalElement
impl Debug for SectionalElement
source§impl PartialEq for SectionalElement
impl PartialEq for SectionalElement
source§fn eq(&self, other: &SectionalElement) -> bool
fn eq(&self, other: &SectionalElement) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SectionalElement
Auto Trait Implementations§
impl Freeze for SectionalElement
impl RefUnwindSafe for SectionalElement
impl Send for SectionalElement
impl Sync for SectionalElement
impl Unpin for SectionalElement
impl UnwindSafe for SectionalElement
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> 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