pub struct CellQueryOptions {Show 13 fields
pub primary_script: Script,
pub primary_type: PrimaryScriptType,
pub with_data: Option<bool>,
pub secondary_script: Option<Script>,
pub secondary_script_len_range: Option<ValueRangeOption>,
pub data_len_range: Option<ValueRangeOption>,
pub capacity_range: Option<ValueRangeOption>,
pub block_range: Option<ValueRangeOption>,
pub order: QueryOrder,
pub limit: Option<u32>,
pub maturity: MaturityOption,
pub min_total_capacity: u64,
pub script_search_mode: Option<SearchMode>,
}Fields§
§primary_script: Script§primary_type: PrimaryScriptType§with_data: Option<bool>§secondary_script: Option<Script>§secondary_script_len_range: Option<ValueRangeOption>§data_len_range: Option<ValueRangeOption>§capacity_range: Option<ValueRangeOption>§block_range: Option<ValueRangeOption>§order: QueryOrder§limit: Option<u32>§maturity: MaturityOptionFilter cell by its maturity
min_total_capacity: u64Try to collect at least min_total_capacity shannons of cells, if
satisfied will stop collecting. The default value is 1 shannon means
collect only one cell at most.
script_search_mode: Option<SearchMode>Implementations§
Source§impl CellQueryOptions
impl CellQueryOptions
pub fn new( primary_script: Script, primary_type: PrimaryScriptType, ) -> CellQueryOptions
pub fn new_lock(primary_script: Script) -> CellQueryOptions
pub fn new_type(primary_script: Script) -> CellQueryOptions
pub fn match_cell(&self, cell: &LiveCell, max_mature_number: u64) -> bool
Trait Implementations§
Source§impl Clone for CellQueryOptions
impl Clone for CellQueryOptions
Source§fn clone(&self) -> CellQueryOptions
fn clone(&self) -> CellQueryOptions
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 CellQueryOptions
impl Debug for CellQueryOptions
Source§impl From<CellQueryOptions> for SearchKey
impl From<CellQueryOptions> for SearchKey
Source§fn from(opts: CellQueryOptions) -> SearchKey
fn from(opts: CellQueryOptions) -> SearchKey
Converts to this type from the input type.
Source§impl Hash for CellQueryOptions
impl Hash for CellQueryOptions
Source§impl PartialEq for CellQueryOptions
impl PartialEq for CellQueryOptions
impl Eq for CellQueryOptions
impl StructuralPartialEq for CellQueryOptions
Auto Trait Implementations§
impl !Freeze for CellQueryOptions
impl RefUnwindSafe for CellQueryOptions
impl Send for CellQueryOptions
impl Sync for CellQueryOptions
impl Unpin for CellQueryOptions
impl UnwindSafe for CellQueryOptions
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> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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