(s: &str)
| 18 | type Err = anyhow::Error; |
| 19 | |
| 20 | fn from_str(s: &str) -> std::result::Result<Self, Self::Err> { |
| 21 | // Could be more strict here, but this should suffice to catch |
| 22 | // unintended configuration mistakes |
| 23 | if s.starts_with("arn:aws:kms:") { |
| 24 | Ok(Self(s.to_string())) |
| 25 | } else { |
| 26 | Err(anyhow!("Invalid ARN identifier: {}", s)) |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | impl BaselineSolvable for ConstantProductOrder { |
nothing calls this directly
no outgoing calls
no test coverage detected