pub struct Query {
pub collections: Option<Vec<String>>,
pub networks: Option<Vec<String>>,
pub addresses: Option<Vec<Vec<u8>>>,
pub names: Option<Vec<String>>,
pub functions: Option<Vec<String>>,
pub extra_data_contains: Option<HashMap<String, Value>>,
pub extra_data_equals: Option<HashMap<String, Value>>,
pub added_bys: Option<Vec<String>>,
pub added_before: Option<u64>,
pub added_after: Option<u64>,
pub added_at: Option<u64>,
}
Expand description
Label query
Fields§
§collections: Option<Vec<String>>
query labels in these collections
networks: Option<Vec<String>>
query labels in these networks
addresses: Option<Vec<Vec<u8>>>
query labels in these addresses
names: Option<Vec<String>>
query labels with these names
functions: Option<Vec<String>>
query labels with these functions
extra_data_contains: Option<HashMap<String, Value>>
query labels with these extra data values
extra_data_equals: Option<HashMap<String, Value>>
query labels with these extra data values
added_bys: Option<Vec<String>>
query labels added by these labelers
added_before: Option<u64>
query labels added before this timestamp
added_after: Option<u64>
query labels added after this timestamp
added_at: Option<u64>
query labels added at this timestamp
Implementations§
Source§impl Query
impl Query
Sourcepub fn collection(self, collection: &str) -> Self
pub fn collection(self, collection: &str) -> Self
set query collection
Sourcepub fn address<T: TryIntoBytes>(self, address: T) -> Result<Self, LblError>
pub fn address<T: TryIntoBytes>(self, address: T) -> Result<Self, LblError>
set query address
Sourcepub fn extra_data_equals(self, extra_data: HashMap<String, Value>) -> Self
pub fn extra_data_equals(self, extra_data: HashMap<String, Value>) -> Self
set query extra data equals
Sourcepub fn extra_data_contains(self, extra_data: HashMap<String, Value>) -> Self
pub fn extra_data_contains(self, extra_data: HashMap<String, Value>) -> Self
set query extra data contains
Sourcepub fn added_before(self, added_before: u64) -> Self
pub fn added_before(self, added_before: u64) -> Self
set query extra data added before
Sourcepub fn added_after(self, added_after: u64) -> Self
pub fn added_after(self, added_after: u64) -> Self
set query extra data added after
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more