pub struct FieldHandle { /* private fields */ }Expand description
Accessor view over one registered field’s reactive cells.
Implementations§
Source§impl FieldHandle
impl FieldHandle
Sourcepub fn value(&self) -> ArcRwSignal<Value>
pub fn value(&self) -> ArcRwSignal<Value>
The field’s value signal — the single source of truth for this field.
Sourcepub fn touched(&self) -> ArcRwSignal<bool>
pub fn touched(&self) -> ArcRwSignal<bool>
Whether the field has been marked touched (blur seam).
Sourcepub fn dirty(&self) -> ArcMemo<bool>
pub fn dirty(&self) -> ArcMemo<bool>
True when the current value differs from the register-time snapshot.
Sourcepub fn errors(&self) -> ArcMemo<Vec<FormaIssue>>
pub fn errors(&self) -> ArcMemo<Vec<FormaIssue>>
Schema-derived issues for the current value, stamped with this path.
Sourcepub fn visible_errors(&self) -> ArcMemo<Vec<FormaIssue>>
pub fn visible_errors(&self) -> ArcMemo<Vec<FormaIssue>>
Display-gated issues: schema issues behind the mode-dependent gate plus live server issues for an unedited value.
Sourcepub fn validate_on(&self) -> ValidateOn
pub fn validate_on(&self) -> ValidateOn
The effective validation-timing mode for this field.
Sourcepub fn get_str(&self) -> Option<String>
pub fn get_str(&self) -> Option<String>
Current value as an owned String, only for the Value::String
variant.
Sourcepub fn display_str(&self) -> String
pub fn display_str(&self) -> String
Canonical display rendering of the current value for <input>
surfaces: String → itself; I64/F64 → shortest-roundtrip
ToString; Bool → "true"/"false"; Null/Array/Object →
"".
Non-finite F64 values render the Rust std spellings — "NaN",
"inf", "-inf" — and these spellings re-coerce via f64::from_str
inside CoercedSchema::<f64>, so the rendered state round-trips.
This is THE single display seam consumed by formars-ui (SSR attribute and pushback effect alike) — never add a second coercion site.
Trait Implementations§
Source§impl Clone for FieldHandle
impl Clone for FieldHandle
Source§fn clone(&self) -> FieldHandle
fn clone(&self) -> FieldHandle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for FieldHandle
impl !UnwindSafe for FieldHandle
impl Freeze for FieldHandle
impl Send for FieldHandle
impl Sync for FieldHandle
impl Unpin for FieldHandle
impl UnsafeUnpin for FieldHandle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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