pub enum RuleEntry {
Preset(PresetInvocation),
Raw(RawRule),
}Expand description
File-level entry: either a hand-written raw rule or a preset
invocation that expands to one or more raw rules. Discrimination is
by presence of the top-level preset key — the custom Deserialize
peeks at the JSON before routing to the right variant so a malformed
preset payload produces a pointed error instead of falling through to
RawRule parsing and surfacing a confusing “missing terminate” error.
Variants§
Preset(PresetInvocation)
Raw(RawRule)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuleEntry
impl<'de> Deserialize<'de> for RuleEntry
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RuleEntry
impl RefUnwindSafe for RuleEntry
impl Send for RuleEntry
impl Sync for RuleEntry
impl Unpin for RuleEntry
impl UnsafeUnpin for RuleEntry
impl UnwindSafe for RuleEntry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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