#[non_exhaustive]pub struct ComponentBindingPropertiesValueProperties {
pub model: Option<String>,
pub field: Option<String>,
pub predicates: Option<Vec<Predicate>>,
pub user_attribute: Option<String>,
pub bucket: Option<String>,
pub key: Option<String>,
pub default_value: Option<String>,
pub slot_name: Option<String>,
}Expand description
Represents the data binding configuration for a specific property using data stored in Amazon Web Services. For Amazon Web Services connected properties, you can bind a property to data stored in an Amazon S3 bucket, an Amplify DataStore model or an authenticated user attribute.
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.model: Option<String>An Amplify DataStore model.
field: Option<String>The field to bind the data to.
predicates: Option<Vec<Predicate>>A list of predicates for binding a component's properties to data.
user_attribute: Option<String>An authenticated user attribute.
bucket: Option<String>An Amazon S3 bucket.
key: Option<String>The storage key for an Amazon S3 bucket.
default_value: Option<String>The default value to assign to the property.
slot_name: Option<String>The name of a component slot.
Implementations§
source§impl ComponentBindingPropertiesValueProperties
impl ComponentBindingPropertiesValueProperties
sourcepub fn predicates(&self) -> &[Predicate]
pub fn predicates(&self) -> &[Predicate]
A list of predicates for binding a component's properties to data.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .predicates.is_none().
sourcepub fn user_attribute(&self) -> Option<&str>
pub fn user_attribute(&self) -> Option<&str>
An authenticated user attribute.
sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The default value to assign to the property.
source§impl ComponentBindingPropertiesValueProperties
impl ComponentBindingPropertiesValueProperties
sourcepub fn builder() -> ComponentBindingPropertiesValuePropertiesBuilder
pub fn builder() -> ComponentBindingPropertiesValuePropertiesBuilder
Creates a new builder-style object to manufacture ComponentBindingPropertiesValueProperties.
Trait Implementations§
source§impl Clone for ComponentBindingPropertiesValueProperties
impl Clone for ComponentBindingPropertiesValueProperties
source§fn clone(&self) -> ComponentBindingPropertiesValueProperties
fn clone(&self) -> ComponentBindingPropertiesValueProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for ComponentBindingPropertiesValueProperties
impl PartialEq for ComponentBindingPropertiesValueProperties
source§fn eq(&self, other: &ComponentBindingPropertiesValueProperties) -> bool
fn eq(&self, other: &ComponentBindingPropertiesValueProperties) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ComponentBindingPropertiesValueProperties
Auto Trait Implementations§
impl Freeze for ComponentBindingPropertiesValueProperties
impl RefUnwindSafe for ComponentBindingPropertiesValueProperties
impl Send for ComponentBindingPropertiesValueProperties
impl Sync for ComponentBindingPropertiesValueProperties
impl Unpin for ComponentBindingPropertiesValueProperties
impl UnwindSafe for ComponentBindingPropertiesValueProperties
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