> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Struct NoteViewerOptions

Module: `noir_aztec::note::note_viewer_options`

```rust
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 owner: Option<AztecAddress>,
    pub status: u8,
}
```

## Fields

```rust
selects: BoundedVec<Option<Select>, M>
```

```rust
sorts: BoundedVec<Option<Sort>, M>
```

```rust
limit: u32
```

```rust
offset: u32
```

```rust
owner: Option<AztecAddress>
```

```rust
status: u8
```

## Implementations

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

```rust
pub fn new() -> Self
where
    Note: NoteType,
    Note: Packable<N = M>
```

```rust
pub fn select<T>(
    &mut self,
    property_selector: PropertySelector<T>,
    comparator: u8,
    value: T,
) -> Self
where
    T: Packable
```

```rust
pub fn sort<T>(&mut self, property_selector: PropertySelector<T>, order: u8) -> Self
where
    T: Packable
```

```rust
pub fn set_limit(&mut self, limit: u32) -> Self
```

```rust
pub fn set_offset(&mut self, offset: u32) -> Self
```

```rust
pub fn set_status(&mut self, status: u8) -> Self
```

```rust
pub fn set_owner(&mut self, owner: AztecAddress) -> Self
```
