pub struct ChunkFieldExtract {
pub pattern: String,
pub as_name: String,
pub carry_forward: bool,
}Expand description
Extract a named field from a line within a chunk (header or body).
Fields§
§pattern: StringRegex pattern with a capture group.
as_name: StringVariable name for the captured value.
carry_forward: boolWhen true, if this field is not extracted from a chunk, it inherits the value from the most recent chunk that did extract it.
Trait Implementations§
Source§impl Clone for ChunkFieldExtract
impl Clone for ChunkFieldExtract
Source§fn clone(&self) -> ChunkFieldExtract
fn clone(&self) -> ChunkFieldExtract
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 ChunkFieldExtract
impl Debug for ChunkFieldExtract
Source§impl<'de> Deserialize<'de> for ChunkFieldExtract
impl<'de> Deserialize<'de> for ChunkFieldExtract
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 ChunkFieldExtract
impl PartialEq for ChunkFieldExtract
Source§impl Serialize for ChunkFieldExtract
impl Serialize for ChunkFieldExtract
impl Eq for ChunkFieldExtract
impl StructuralPartialEq for ChunkFieldExtract
Auto Trait Implementations§
impl Freeze for ChunkFieldExtract
impl RefUnwindSafe for ChunkFieldExtract
impl Send for ChunkFieldExtract
impl Sync for ChunkFieldExtract
impl Unpin for ChunkFieldExtract
impl UnsafeUnpin for ChunkFieldExtract
impl UnwindSafe for ChunkFieldExtract
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