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: u32offset: u32status: u8Implementations
impl<let M: u32, Note> NoteViewerOptions<Note, M>
pub fn new() -> Self
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