pub struct MarkSpec {
pub attrs: Option<HashSet<String>>,
pub required_attrs: HashSet<String>,
}Expand description
Rules for one mark type.
Fields§
§attrs: Option<HashSet<String>>Allowed attribute keys. None = any attrs allowed.
required_attrs: HashSet<String>Attribute keys that must be present.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MarkSpec
impl<'de> Deserialize<'de> for MarkSpec
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
impl StructuralPartialEq for MarkSpec
Auto Trait Implementations§
impl Freeze for MarkSpec
impl RefUnwindSafe for MarkSpec
impl Send for MarkSpec
impl Sync for MarkSpec
impl Unpin for MarkSpec
impl UnsafeUnpin for MarkSpec
impl UnwindSafe for MarkSpec
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