pub struct FieldModel {Show 18 fields
pub name: String,
pub kind: FieldModelKind,
pub value: String,
pub default_value: String,
pub value_as_string: Option<String>,
pub options: Vec<(String, String)>,
pub selected: Vec<u32>,
pub flags: FieldModelFlags,
pub display: u32,
pub rect: [f64; 4],
pub pages: Vec<u32>,
pub user_name: String,
pub export_values: Vec<String>,
pub checked: Vec<bool>,
pub default_checked: Vec<bool>,
pub captions: [String; 3],
pub button_position: u32,
pub border_style: String,
}javascript only.Expand description
One terminal field, as a script sees it.
Fields§
§name: StringThe fully qualified name — Field.name.
kind: FieldModelKindField.type, as the oracle spells it: one of button, checkbox,
radiobutton, combobox, listbox, text, signature, unknown.
value: StringField.value. Kept current: a calculation sweep writes here, so a
later script reads what an earlier one computed.
default_value: StringField.defaultValue — /DV.
value_as_string: Option<String>Field.valueAsString, when it differs from value.
None means “the value itself”, which is the ordinary case. A
check box answers the literal Yes/Off rather than its export
value, and a multi-select list answers "", so the two cannot always
be the same string.
options: Vec<(String, String)>The options a choice field offers, as (export value, label).
selected: Vec<u32>Which options are selected, by index — Field.currentValueIndices.
flags: FieldModelFlagsThe /Ff bits, so the flag-derived properties answer without a second
vocabulary.
display: u32Field.display: 0 visible, 1 hidden, 2 visible-but-not-printed,
3 printed-but-not-viewed. Derived from /F.
rect: [f64; 4]Field.rect — [left, top, right, bottom], which is the getter’s
order and not the setter’s.
pages: Vec<u32>The pages this field’s widgets are on — Field.page.
user_name: StringField.userName — /TU, the tooltip.
export_values: Vec<String>The export values of a check box’s or radio group’s controls —
Field.exportValues.
checked: Vec<bool>Whether each control is checked, for isBoxChecked and
checkThisBox.
default_checked: Vec<bool>Whether each control is checked by default, for
isDefaultChecked.
captions: [String; 3]The three button captions — /MK /CA, /AC, /RC — which
buttonGetCaption(nFace) indexes.
Field.buttonPosition — /MK /TP, clamped to 0..=6.
The clamp is not a guard: field.fragment’s MyBadPushButton carries
/TP 7 and the golden reads buttonPosition = 0 for it, so an
out-of-range value becomes zero rather than being passed through.
border_style: StringField.borderStyle — one of solid, dashed, beveled, inset,
underline. Empty until a getter or setter first names it, which
the getter then answers as solid.
Trait Implementations§
Source§impl Clone for FieldModel
impl Clone for FieldModel
Source§impl Debug for FieldModel
impl Debug for FieldModel
Source§impl Default for FieldModel
impl Default for FieldModel
Source§impl PartialEq for FieldModel
impl PartialEq for FieldModel
impl StructuralPartialEq for FieldModel
Auto Trait Implementations§
impl Freeze for FieldModel
impl RefUnwindSafe for FieldModel
impl Send for FieldModel
impl Sync for FieldModel
impl Unpin for FieldModel
impl UnsafeUnpin for FieldModel
impl UnwindSafe for FieldModel
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 moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.