pub struct LineExtract {
pub line: usize,
pub pattern: String,
pub output: String,
}Expand description
Extracts a value from a specific line number.
Fields§
§line: usize1-based line number to extract from.
pattern: StringRegex pattern with capture groups.
output: StringOutput template using {1}, {2}, etc. for captures.
Trait Implementations§
Source§impl Clone for LineExtract
impl Clone for LineExtract
Source§fn clone(&self) -> LineExtract
fn clone(&self) -> LineExtract
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LineExtract
impl Debug for LineExtract
Source§impl<'de> Deserialize<'de> for LineExtract
impl<'de> Deserialize<'de> for LineExtract
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
Source§impl PartialEq for LineExtract
impl PartialEq for LineExtract
Source§impl Serialize for LineExtract
impl Serialize for LineExtract
impl Eq for LineExtract
impl StructuralPartialEq for LineExtract
Auto Trait Implementations§
impl Freeze for LineExtract
impl RefUnwindSafe for LineExtract
impl Send for LineExtract
impl Sync for LineExtract
impl Unpin for LineExtract
impl UnsafeUnpin for LineExtract
impl UnwindSafe for LineExtract
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