#[repr(C, u8)]pub enum ComponentFieldValueSource {
Default,
Literal(AzString),
Binding(AzString),
}Expand description
How a field value is sourced at the instance level.
Variants§
Default
Use the component’s default value
Literal(AzString)
Hardcoded literal value (as string, parsed at runtime)
Binding(AzString)
Bound to an app state path (e.g. “app_state.user.name”)
Trait Implementations§
Source§impl Clone for ComponentFieldValueSource
impl Clone for ComponentFieldValueSource
Source§fn clone(&self) -> ComponentFieldValueSource
fn clone(&self) -> ComponentFieldValueSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentFieldValueSource
impl Debug for ComponentFieldValueSource
Source§impl PartialEq for ComponentFieldValueSource
impl PartialEq for ComponentFieldValueSource
Source§fn eq(&self, other: &ComponentFieldValueSource) -> bool
fn eq(&self, other: &ComponentFieldValueSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentFieldValueSource
Auto Trait Implementations§
impl Freeze for ComponentFieldValueSource
impl RefUnwindSafe for ComponentFieldValueSource
impl Send for ComponentFieldValueSource
impl Sync for ComponentFieldValueSource
impl Unpin for ComponentFieldValueSource
impl UnsafeUnpin for ComponentFieldValueSource
impl UnwindSafe for ComponentFieldValueSource
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