-
I see that |
Beta Was this translation helpful? Give feedback.
Answered by
jdisanti
Sep 16, 2022
Replies: 2 comments 1 reply
-
let region_string: String = "us-east-1".into();
let region = Region::new(region_string); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Velfi
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Region
has two constructor methods. Thefrom_static
is like you say, it can only take a&'static str
. But if you usenew
instead, then you can pass in a string since it takes aCow<'static, str>
. So withnew
, the following should just work: