pub enum PropRule {
Copy(String),
Const(Value),
From {
from: Option<String>,
map: Option<Map<String, Value>>,
default: Option<Value>,
},
}Expand description
One props entry of a component rule.
Variants§
Copy(String)
"basicProp": copy the basic prop when defined.
Const(Value)
{const}
From
{from, map?, default?}; default: Some(Null) is an explicit null.
Trait Implementations§
impl StructuralPartialEq for PropRule
Auto Trait Implementations§
impl Freeze for PropRule
impl RefUnwindSafe for PropRule
impl Send for PropRule
impl Sync for PropRule
impl Unpin for PropRule
impl UnsafeUnpin for PropRule
impl UnwindSafe for PropRule
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