pub struct QuantityStepperProps {
pub field: String,
pub min: Option<u32>,
pub max: Option<u32>,
pub step: Option<u32>,
}Expand description
Props for the QuantityStepper POS builtin — a reusable +/- stepper driving a hidden input on the Tile contract. Renderer lands in Phase 256.
Fields§
§field: StringName of the hidden input this stepper increments/decrements.
min: Option<u32>Lower bound (Phase 256 render default is 0).
max: Option<u32>Upper bound; unbounded when absent.
step: Option<u32>Increment size (Phase 256 render default is 1).
Trait Implementations§
Source§impl Clone for QuantityStepperProps
impl Clone for QuantityStepperProps
Source§fn clone(&self) -> QuantityStepperProps
fn clone(&self) -> QuantityStepperProps
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 QuantityStepperProps
impl Debug for QuantityStepperProps
Source§impl<'de> Deserialize<'de> for QuantityStepperProps
impl<'de> Deserialize<'de> for QuantityStepperProps
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 QuantityStepperProps
impl JsonSchema for QuantityStepperProps
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 QuantityStepperProps
impl PartialEq for QuantityStepperProps
Source§fn eq(&self, other: &QuantityStepperProps) -> bool
fn eq(&self, other: &QuantityStepperProps) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QuantityStepperProps
impl Serialize for QuantityStepperProps
impl StructuralPartialEq for QuantityStepperProps
Auto Trait Implementations§
impl Freeze for QuantityStepperProps
impl RefUnwindSafe for QuantityStepperProps
impl Send for QuantityStepperProps
impl Sync for QuantityStepperProps
impl Unpin for QuantityStepperProps
impl UnsafeUnpin for QuantityStepperProps
impl UnwindSafe for QuantityStepperProps
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