#[non_exhaustive]pub struct ComponentDataConfiguration {
pub model: String,
pub sort: Option<Vec<SortProperty>>,
pub predicate: Option<Predicate>,
pub identifiers: Option<Vec<String>>,
}Expand description
Describes the configuration for binding a component's properties to 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.model: StringThe name of the data model to use to bind data to a component.
sort: Option<Vec<SortProperty>>Describes how to sort the component's properties.
predicate: Option<Predicate>Represents the conditional logic to use when binding data to a component. Use this property to retrieve only a subset of the data in a collection.
identifiers: Option<Vec<String>>A list of IDs to use to bind data to a component. Use this property to bind specifically chosen data, rather than data retrieved from a query.
Implementations§
source§impl ComponentDataConfiguration
impl ComponentDataConfiguration
sourcepub fn sort(&self) -> &[SortProperty]
pub fn sort(&self) -> &[SortProperty]
Describes how to sort the component's properties.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sort.is_none().
sourcepub fn predicate(&self) -> Option<&Predicate>
pub fn predicate(&self) -> Option<&Predicate>
Represents the conditional logic to use when binding data to a component. Use this property to retrieve only a subset of the data in a collection.
sourcepub fn identifiers(&self) -> &[String]
pub fn identifiers(&self) -> &[String]
A list of IDs to use to bind data to a component. Use this property to bind specifically chosen data, rather than data retrieved from a query.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .identifiers.is_none().
source§impl ComponentDataConfiguration
impl ComponentDataConfiguration
sourcepub fn builder() -> ComponentDataConfigurationBuilder
pub fn builder() -> ComponentDataConfigurationBuilder
Creates a new builder-style object to manufacture ComponentDataConfiguration.
Trait Implementations§
source§impl Clone for ComponentDataConfiguration
impl Clone for ComponentDataConfiguration
source§fn clone(&self) -> ComponentDataConfiguration
fn clone(&self) -> ComponentDataConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ComponentDataConfiguration
impl Debug for ComponentDataConfiguration
source§impl PartialEq for ComponentDataConfiguration
impl PartialEq for ComponentDataConfiguration
source§fn eq(&self, other: &ComponentDataConfiguration) -> bool
fn eq(&self, other: &ComponentDataConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ComponentDataConfiguration
Auto Trait Implementations§
impl Freeze for ComponentDataConfiguration
impl RefUnwindSafe for ComponentDataConfiguration
impl Send for ComponentDataConfiguration
impl Sync for ComponentDataConfiguration
impl Unpin for ComponentDataConfiguration
impl UnwindSafe for ComponentDataConfiguration
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