pub struct Property {
pub name: String,
pub value: String,
pub property_type: PropertyType,
pub unit: String,
pub tooltip: String,
pub on_change: String,
}Fields§
§name: String§value: String§property_type: PropertyType§unit: String§tooltip: String§on_change: StringImplementations§
Source§impl Property
impl Property
pub fn number(name: String, value: f32, min: f32, max: f32) -> Property
pub fn integer(name: String, value: i32, min: i32, max: i32) -> Property
pub fn boolean(name: String, value: bool) -> Property
pub fn text(name: String, value: String) -> Property
pub fn color(name: String, value: String) -> Property
pub fn unit(self, unit: String) -> Property
pub fn tooltip(self, tooltip: String) -> Property
pub fn on_change(self, handler: String) -> Property
Trait Implementations§
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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