> ## Documentation Index
> Fetch the complete documentation index at: https://docs.law4devs.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Compliance Deadlines

> List and iterate compliance deadlines with the Rust SDK.

## Methods

```rust theme={null}
client.compliance.deadlines(framework_slug: Option<&str>, page: Option<u32>, per_page: Option<u32>)
    -> Result<Page<ComplianceDeadline>, Law4DevsError>

client.compliance.iter_deadlines(framework_slug: Option<&str>, per_page: u32)
    -> impl Stream<Item = Result<ComplianceDeadline, Law4DevsError>>
```

***

## List Deadlines

```rust theme={null}
// All deadlines
let page = client.compliance.deadlines(None, None, None).await?;

// Deadlines for NIS2
let page = client.compliance.deadlines(Some("nis2"), None, None).await?;
for d in &page.data {
    println!("{} — {}", d.deadline, d.title);
}
```

***

## Auto-Paginate

```rust theme={null}
use futures::StreamExt;

let mut stream = Box::pin(client.compliance.iter_deadlines(Some("nis2"), 20));
while let Some(result) = stream.next().await {
    let d = result?;
    println!("{} — {}", d.deadline, d.title);
}
```

***

## `ComplianceDeadline` Fields

| Field               | Type             | Description           |
| ------------------- | ---------------- | --------------------- |
| `id`                | `u32`            | Internal ID           |
| `framework_slug`    | `String`         | Parent framework slug |
| `title`             | `String`         | Deadline title        |
| `description`       | `Option<String>` | Detailed description  |
| `deadline`          | `String`         | ISO 8601 date         |
| `deadline_type`     | `Option<String>` | Type of deadline      |
| `article_reference` | `Option<String>` | Source article        |
