(mut self, priority: u8)
| 379 | /// Panics if the priority is not between 1 and 5. |
| 380 | #[must_use] |
| 381 | pub fn priority(mut self, priority: u8) -> Self { |
| 382 | assert!( |
| 383 | (1..=5).contains(&priority), |
| 384 | "Priority must be between 1 and 5" |
| 385 | ); |
| 386 | |
| 387 | self.priority = Some(priority); |
| 388 | self |
| 389 | } |
| 390 | |
| 391 | /// Builds the `PublishOptions` with the configured values. |
| 392 | #[must_use] |
no outgoing calls