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

# Struct FieldCompressedString

Module: `compressed_string`

```rust
pub struct FieldCompressedString
{ /* private fields */ }
```

## Implementations

```rust
impl FieldCompressedString
```

```rust
pub fn is_eq(self, other: Self) -> bool
```

```rust
pub fn from_field(input_field: Field) -> Self
```

```rust
pub fn from_string(input_string: str<31>) -> Self
```

```rust
pub fn to_bytes(self) -> [u8; 31]
```

## Trait implementations

```rust
impl Deserialize for FieldCompressedString
```

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

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

```rust
impl Eq for FieldCompressedString
```

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

```rust
impl Packable for FieldCompressedString
```

```rust
pub fn pack(self) -> [Field; 1]
```

```rust
pub fn unpack(packed: [Field; 1]) -> Self
```

```rust
impl Serialize for FieldCompressedString
```

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

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