aztec-nr - noir_aztec::note::note_viewer_options

Struct NoteViewerOptions

pub struct NoteViewerOptions<Note, let M: u32> {
    pub selects: BoundedVec<Option<Select>, M>,
    pub sorts: BoundedVec<Option<Sort>, M>,
    pub limit: u32,
    pub offset: u32,
    pub status: u8,
}

Fields

selects: BoundedVec<Option<Select>, M>
sorts: BoundedVec<Option<Sort>, M>
limit: u32
offset: u32
status: u8

Implementations

impl<let M: u32, Note> NoteViewerOptions<Note, M>

pub fn new() -> Self
where Note: NoteType, Note: Packable<N = M>
pub fn select<T>( &mut self, property_selector: PropertySelector, comparator: u8, value: T, ) -> Self
where T: ToField
pub fn sort(&mut self, property_selector: PropertySelector, order: u8) -> Self pub fn set_limit(&mut self, limit: u32) -> Self pub fn set_offset(&mut self, offset: u32) -> Self pub fn set_status(&mut self, status: u8) -> Self