PropertySelector
Fields
Field | Type |
---|---|
index | u8 |
offset | u8 |
length | u8 |
Select
Fields
Field | Type |
---|---|
property_selector | PropertySelector |
comparator | u8 |
value | Field |
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
Name | Type |
---|---|
property_selector | PropertySelector |
comparator | u8 |
value | Field |
SortOrderEnum
Fields
Field | Type |
---|---|
DESC | u8 |
ASC | u8 |
Sort
Fields
Field | Type |
---|---|
property_selector | PropertySelector |
order | u8 |
Methods
new
Sort::new(property_selector, order);
Parameters
Name | Type |
---|---|
property_selector | PropertySelector |
order | u8 |
NoteStatusEnum
Fields
Field | Type |
---|---|
ACTIVE | u8 |
ACTIVE_OR_NULLIFIED | u8 |
Standalone Functions
return_all_notes
return_all_notes(notes, _p);
Parameters
Name | Type |
---|---|
notes | [Option<Note>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL] |
_p | Field |
select
select(&mut self, property_selector, comparator, value);
Parameters
Name | Type |
---|---|
&mut self | |
property_selector | PropertySelector |
comparator | u8 |
value | T |
sort
sort(&mut self, property_selector, order);
Parameters
Name | Type |
---|---|
&mut self | |
property_selector | PropertySelector |
order | u8 |
set_limit
set_limit(&mut self, limit);
Parameters
Name | Type |
---|---|
&mut self | |
limit | u32 |
set_offset
set_offset(&mut self, offset);
Parameters
Name | Type |
---|---|
&mut self | |
offset | u32 |
set_status
set_status(&mut self, status);
Parameters
Name | Type |
---|---|
&mut self | |
status | u8 |
with_preprocessor
with_preprocessor(preprocessor, PREPROCESSOR_ARGS);
Parameters
Name | Type |
---|---|
preprocessor | fn([Option<Note>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL] |
PREPROCESSOR_ARGS |
with_filter
with_filter(filter, FILTER_ARGS);
Parameters
Name | Type |
---|---|
filter | fn([Option<Note>; MAX_NOTE_HASH_READ_REQUESTS_PER_CALL] |
FILTER_ARGS |