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

# Struct TreeSnapshots

Module: `protocol_types::abis::tree_snapshots`

```rust
pub struct TreeSnapshots {
    pub l1_to_l2_message_tree: AppendOnlyTreeSnapshot,
    pub note_hash_tree: AppendOnlyTreeSnapshot,
    pub nullifier_tree: AppendOnlyTreeSnapshot,
    pub public_data_tree: AppendOnlyTreeSnapshot,
}
```

## Fields

```rust
l1_to_l2_message_tree: AppendOnlyTreeSnapshot
```

```rust
note_hash_tree: AppendOnlyTreeSnapshot
```

```rust
nullifier_tree: AppendOnlyTreeSnapshot
```

```rust
public_data_tree: AppendOnlyTreeSnapshot
```

## Implementations

```rust
impl TreeSnapshots
```

```rust
pub fn to_partial_state_reference(self) -> PartialStateReference
```

## Trait implementations

```rust
impl Deserialize for TreeSnapshots
```

```rust
pub fn deserialize(fields: [Field; 8]) -> Self
```

```rust
pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self
```

```rust
impl Empty for TreeSnapshots
```

```rust
pub fn empty() -> Self
```

```rust
pub fn is_empty(self: Self) -> bool
where
    Self: Eq
```

```rust
pub fn assert_empty<let S: u32>(self: Self, msg: str<S>)
where
    Self: Eq
```

```rust
impl Eq for TreeSnapshots
```

```rust
pub fn eq(_self: Self, _other: Self) -> bool
```

```rust
impl Serialize for TreeSnapshots
```

```rust
pub fn serialize(self) -> [Field; 8]
```

```rust
pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)
```
