mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-06 17:37:47 +08:00
13 lines
261 B
Rust
13 lines
261 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub struct RetryPolicy {
|
|
pub max_attempts: u32,
|
|
}
|
|
|
|
impl Default for RetryPolicy {
|
|
fn default() -> Self {
|
|
Self { max_attempts: 1 }
|
|
}
|
|
}
|