pub struct Modifier {
pub name: String,
pub value: Option<String>,
}Expand description
A key-value modifier on a field definition (§8.6).
Boolean flags have value = None (e.g., hidden).
Key-value pairs have value = Some(...) (e.g., unit=usd).
Fields§
§name: String§value: Option<String>Trait Implementations§
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnsafeUnpin for Modifier
impl UnwindSafe for Modifier
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