Skip to main content

PropertySelector

Fields

FieldType
pub(crate) indexu8, // index of the field in the serialized note array
pub(crate) offsetu8, // offset in the byte representation of the field (selected with index above) from which to reading
pub(crate) lengthu8, // number of bytes to read after the offset

Select

Fields

FieldType
pub(crate) property_selectorPropertySelector
pub(crate) comparatoru8
pub(crate) valueField

Methods

new

The selected property will be the left hand side and value the right hand side of the operation, so e.g. the object created by new(property, Comparator.GT, value) represents 'property > value'.

Select::new(property_selector, comparator, value);

Parameters

NameType
property_selectorPropertySelector
comparatoru8
valueField

SortOrderEnum

Fields

FieldType
pub DESCu8
pub ASCu8

Sort

Fields

FieldType
pub(crate) property_selectorPropertySelector
pub(crate) orderu8

Methods

new

Sort::new(property_selector, order);

Parameters

NameType
property_selectorPropertySelector
orderu8

NoteStatusEnum

Fields

FieldType
pub ACTIVEu8
pub ACTIVE_OR_NULLIFIEDu8

Standalone Functions

return_all_notes

return_all_notes(notes, _p, );

This is the default filter and preprocessor, which does nothing

Parameters

NameType
notes[Option<Note>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL]
_pField

select

select(&mut self, property_selector, comparator, value, );

Parameters

NameType
&mut self
property_selectorPropertySelector
comparatoru8
valueT

sort

sort(&mut self, property_selector, order);

Parameters

NameType
&mut self
property_selectorPropertySelector
orderu8

set_limit

set_limit(&mut self, limit);

Parameters

NameType
&mut self
limitu32

set_offset

set_offset(&mut self, offset);

Parameters

NameType
&mut self
offsetu32

set_status

set_status(&mut self, status);

Parameters

NameType
&mut self
statusu8

with_preprocessor

with_preprocessor(preprocessor, PREPROCESSOR_ARGS);

Parameters

NameType
preprocessorfn([Option<Note>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL]
PREPROCESSOR_ARGS

with_filter

with_filter(filter, FILTER_ARGS);

Parameters

NameType
filterfn([Option<Note>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL]
FILTER_ARGS