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

# Struct Log

Module: `noir_aztec::protocol::abis::log`

```rust
pub struct Log<let N: u32> {
    pub fields: [Field; N],
    pub length: u32,
}
```

## Fields

```rust
fields: [Field; N]
```

```rust
length: u32
```

## Implementations

```rust
impl<let N: u32> Log<N>
```

```rust
pub fn new(fields: [Field; N], length: u32) -> Self
```

## Trait implementations

```rust
impl<let N: u32> Deserialize for Log<N>
```

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

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

```rust
impl<let N: u32> Empty for Log<N>
```

```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<let N: u32> Eq for Log<N>
```

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

```rust
impl<let N: u32> Serialize for Log<N>
```

```rust
pub fn serialize(self) -> [Field; N + 1]
```

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