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

# Struct GasSettings

Module: `protocol_types::abis::gas_settings`

```rust
pub struct GasSettings {
    pub gas_limits: Gas,
    pub teardown_gas_limits: Gas,
    pub max_fees_per_gas: GasFees,
    pub max_priority_fees_per_gas: GasFees,
}
```

## Fields

```rust
gas_limits: Gas
```

```rust
teardown_gas_limits: Gas
```

```rust
max_fees_per_gas: GasFees
```

```rust
max_priority_fees_per_gas: GasFees
```

## Implementations

```rust
impl GasSettings
```

```rust
pub fn new(
    gas_limits: Gas,
    teardown_gas_limits: Gas,
    max_fees_per_gas: GasFees,
    max_priority_fees_per_gas: GasFees,
) -> Self
```

## Trait implementations

```rust
impl Deserialize for GasSettings
```

```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 GasSettings
```

```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 GasSettings
```

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

```rust
impl Serialize for GasSettings
```

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

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