libimagentryfilter: Update use stmts for filters
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
This commit is contained in:
parent
fda1c94bee
commit
0e4079287a
20 changed files with 20 additions and 23 deletions
|
@ -1,6 +1,6 @@
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
pub struct BoolFilter(bool);
|
pub struct BoolFilter(bool);
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
|
use filters::filter::Filter;
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use regex::Error as RError;
|
use regex::Error as RError;
|
||||||
|
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use filter::Filter;
|
|
||||||
|
|
||||||
pub trait IntoRegex {
|
pub trait IntoRegex {
|
||||||
|
|
||||||
fn into_regex(self) -> Result<Regex, RError>;
|
fn into_regex(self) -> Result<Regex, RError>;
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
use filters::filter::Filter;
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use filter::Filter;
|
|
||||||
|
|
||||||
pub struct ContentLengthIsOver {
|
pub struct ContentLengthIsOver {
|
||||||
val: usize
|
val: usize
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
use filters::filter::Filter;
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use filter::Filter;
|
|
||||||
|
|
||||||
pub struct ContentLengthIsUnder {
|
pub struct ContentLengthIsUnder {
|
||||||
val: usize
|
val: usize
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ use libimagstore::store::Entry;
|
||||||
use builtin::header::field_path::FieldPath;
|
use builtin::header::field_path::FieldPath;
|
||||||
use builtin::header::field_predicate::FieldPredicate;
|
use builtin::header::field_predicate::FieldPredicate;
|
||||||
use builtin::header::field_predicate::Predicate;
|
use builtin::header::field_predicate::Predicate;
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use builtin::header::field_path::FieldPath;
|
use builtin::header::field_path::FieldPath;
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
pub struct FieldExists {
|
pub struct FieldExists {
|
||||||
header_field_path: FieldPath,
|
header_field_path: FieldPath,
|
||||||
|
|
|
@ -6,7 +6,7 @@ use libimagstore::store::Entry;
|
||||||
use builtin::header::field_path::FieldPath;
|
use builtin::header::field_path::FieldPath;
|
||||||
use builtin::header::field_predicate::FieldPredicate;
|
use builtin::header::field_predicate::FieldPredicate;
|
||||||
use builtin::header::field_predicate::Predicate;
|
use builtin::header::field_predicate::Predicate;
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
struct EqGrep{
|
struct EqGrep{
|
||||||
regex: Regex
|
regex: Regex
|
||||||
|
|
|
@ -3,7 +3,7 @@ use libimagstore::store::Entry;
|
||||||
use builtin::header::field_path::FieldPath;
|
use builtin::header::field_path::FieldPath;
|
||||||
use builtin::header::field_predicate::FieldPredicate;
|
use builtin::header::field_predicate::FieldPredicate;
|
||||||
use builtin::header::field_predicate::Predicate;
|
use builtin::header::field_predicate::Predicate;
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use builtin::header::field_path::FieldPath;
|
use builtin::header::field_path::FieldPath;
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ use libimagstore::store::Entry;
|
||||||
use builtin::header::field_path::FieldPath;
|
use builtin::header::field_path::FieldPath;
|
||||||
use builtin::header::field_predicate::FieldPredicate;
|
use builtin::header::field_predicate::FieldPredicate;
|
||||||
use builtin::header::field_predicate::Predicate;
|
use builtin::header::field_predicate::Predicate;
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ use libimagstore::store::Entry;
|
||||||
use builtin::header::field_path::FieldPath;
|
use builtin::header::field_path::FieldPath;
|
||||||
use builtin::header::field_predicate::FieldPredicate;
|
use builtin::header::field_predicate::FieldPredicate;
|
||||||
use builtin::header::field_predicate::Predicate;
|
use builtin::header::field_predicate::Predicate;
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use builtin::header::field_path::FieldPath;
|
use builtin::header::field_path::FieldPath;
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ use toml::Value;
|
||||||
|
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
pub struct VersionEq {
|
pub struct VersionEq {
|
||||||
version: Version,
|
version: Version,
|
||||||
|
|
|
@ -3,7 +3,7 @@ use toml::Value;
|
||||||
|
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
pub struct VersionGt {
|
pub struct VersionGt {
|
||||||
version: Version,
|
version: Version,
|
||||||
|
|
|
@ -3,7 +3,7 @@ use toml::Value;
|
||||||
|
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
pub struct VersionLt {
|
pub struct VersionLt {
|
||||||
version: Version,
|
version: Version,
|
||||||
|
|
|
@ -4,7 +4,7 @@ use libimagstore::store::Entry;
|
||||||
|
|
||||||
use builtin::header::version::gt::VersionGt;
|
use builtin::header::version::gt::VersionGt;
|
||||||
use builtin::header::version::lt::VersionLt;
|
use builtin::header::version::lt::VersionLt;
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
use ops::and::And;
|
use ops::and::And;
|
||||||
use ops::not::Not;
|
use ops::not::Not;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
pub struct And {
|
pub struct And {
|
||||||
a: Box<Filter>,
|
a: Box<Filter>,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
pub struct Not {
|
pub struct Not {
|
||||||
a: Box<Filter>
|
a: Box<Filter>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
pub struct Or {
|
pub struct Or {
|
||||||
a: Box<Filter>,
|
a: Box<Filter>,
|
||||||
|
|
|
@ -2,7 +2,7 @@ use libimagstore::store::Entry;
|
||||||
use libimagentrytag::tagable::Tagable;
|
use libimagentrytag::tagable::Tagable;
|
||||||
use libimagentrytag::tag::Tag;
|
use libimagentrytag::tag::Tag;
|
||||||
|
|
||||||
use filter::Filter;
|
use filters::filter::Filter;
|
||||||
|
|
||||||
/// Check whether an Entry has a certain tag
|
/// Check whether an Entry has a certain tag
|
||||||
pub struct HasTag {
|
pub struct HasTag {
|
||||||
|
|
Loading…
Reference in a new issue