pub struct RuleMap {
pub doc: String,
pub keys: Vec<(String, KeyDef)>,
pub exactly_one_of: Vec<String>,
pub at_least_one_of: Vec<String>,
pub common: bool,
}Expand description
One rule map under schema, or schema itself.
Fields§
§doc: StringWhat the map is.
keys: Vec<(String, KeyDef)>The keys, in grammar order.
exactly_one_of: Vec<String>Exactly one of these keys must be present.
at_least_one_of: Vec<String>At least one of these keys must be present.
common: boolWhether the map accepts the rule-common keys.
Implementations§
Trait Implementations§
impl StructuralPartialEq for RuleMap
Auto Trait Implementations§
impl Freeze for RuleMap
impl RefUnwindSafe for RuleMap
impl Send for RuleMap
impl Sync for RuleMap
impl Unpin for RuleMap
impl UnsafeUnpin for RuleMap
impl UnwindSafe for RuleMap
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