pub struct NumpadProps {
pub target_field: String,
pub mode: NumpadMode,
}Expand description
Props for the Numpad POS builtin — a tap-surface numeric keypad that writes to a target field and NEVER renders a native input (so the software keyboard is never triggered). Renderer lands in Phase 256.
Fields§
§target_field: StringName of the input this numpad writes into.
mode: NumpadModeEntry mode (quantity | price). Defaults to quantity.
Trait Implementations§
Source§impl Clone for NumpadProps
impl Clone for NumpadProps
Source§fn clone(&self) -> NumpadProps
fn clone(&self) -> NumpadProps
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 NumpadProps
impl Debug for NumpadProps
Source§impl<'de> Deserialize<'de> for NumpadProps
impl<'de> Deserialize<'de> for NumpadProps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for NumpadProps
impl JsonSchema for NumpadProps
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NumpadProps
impl PartialEq for NumpadProps
Source§fn eq(&self, other: &NumpadProps) -> bool
fn eq(&self, other: &NumpadProps) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NumpadProps
impl Serialize for NumpadProps
impl StructuralPartialEq for NumpadProps
Auto Trait Implementations§
impl Freeze for NumpadProps
impl RefUnwindSafe for NumpadProps
impl Send for NumpadProps
impl Sync for NumpadProps
impl Unpin for NumpadProps
impl UnsafeUnpin for NumpadProps
impl UnwindSafe for NumpadProps
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