pub struct Section {
pub name: Option<String>,
pub enter: Option<String>,
pub exit: Option<String>,
pub match_pattern: Option<String>,
pub split_on: Option<String>,
pub collect_as: Option<String>,
}Expand description
A state-machine section that collects lines between enter/exit markers.
Fields§
§name: Option<String>Name of this section (for diagnostics/debugging).
enter: Option<String>Regex that activates this section.
exit: Option<String>Regex that deactivates this section.
match_pattern: Option<String>Regex that individual lines must match to be collected.
split_on: Option<String>Regex to split collected content into blocks.
collect_as: Option<String>Variable name for the collected lines/blocks.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
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 Eq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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