pub struct Filter {Show 14 fields
pub id: String,
pub command: String,
pub subcommands: Vec<String>,
pub strip_ansi: bool,
pub drop_prefix: Vec<String>,
pub drop_contains: Vec<String>,
pub drop_suffix: Vec<String>,
pub keep_prefix: Vec<String>,
pub keep_contains: Vec<String>,
pub keep_suffix: Vec<String>,
pub group_until_blank: bool,
pub head: Option<u64>,
pub tail: Option<u64>,
pub on_empty: Option<String>,
}Expand description
One entry. Everything but id and command has a default.
Fields§
§id: String§command: String§subcommands: Vec<String>§strip_ansi: bool§drop_prefix: Vec<String>§drop_contains: Vec<String>§drop_suffix: Vec<String>§keep_prefix: Vec<String>§keep_contains: Vec<String>§keep_suffix: Vec<String>§group_until_blank: boolA kept line pulls the lines after it, up to the next blank one, into the same candidate. What a rustc diagnostic needs.
head: Option<u64>§tail: Option<u64>§on_empty: Option<String>Said when nothing survives. {sub} and {code} are filled in.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Filter
impl<'de> Deserialize<'de> for Filter
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 Filter
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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