#[non_exhaustive]
pub struct ChainQueryFilter { pub sequence_range: ChainQueryFilterRange, pub entry_type: Option<EntryType>, pub entry_hashes: Option<HashSet<HoloHash<Entry>, RandomState>>, pub header_type: Option<HeaderType>, pub include_entries: bool, }
Expand description

Query arguments

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
sequence_range: ChainQueryFilterRange

Limit the results to a range of elements according to their headers.

entry_type: Option<EntryType>

Filter by EntryType

entry_hashes: Option<HashSet<HoloHash<Entry>, RandomState>>

Filter by a list of EntryHash.

header_type: Option<HeaderType>

Filter by HeaderType

include_entries: bool

Include the entries in the elements

Implementations

Create a no-op ChainQueryFilter which returns everything.

Filter on sequence range.

Filter on entry type.

Filter on entry hashes.

Filter on header type.

Include the entries in the ElementsVec that is returned.

If the sequence range supports fork disambiguation, apply it to remove headers that are not in the correct branch. Numerical range bounds do NOT support fork disambiguation, and neither does unbounded, but everything hash bounded does.

Filter a vector of hashed headers according to the query.

Filter a vector of elements according to the query.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more