Struct aws_config::BehaviorVersion
source · pub struct BehaviorVersion { /* private fields */ }
Expand description
Behavior major-version of the client
Over time, new best-practice behaviors are introduced. However, these behaviors might not be backwards compatible. For example, a change which introduces new default timeouts or a new retry-mode for all operations might be the ideal behavior but could break existing applications.
Implementations§
source§impl BehaviorVersion
impl BehaviorVersion
sourcepub fn latest() -> BehaviorVersion
pub fn latest() -> BehaviorVersion
This method will always return the latest major version.
This is the recommend choice for customers who aren’t reliant on extremely specific behavior characteristics. For example, if you are writing a CLI app, the latest behavior major version is probably the best setting for you.
If, however, you’re writing a service that is very latency sensitive, or that has written code to tune Rust SDK behaviors, consider pinning to a specific major version.
The latest version is currently BehaviorVersion::v2023_11_09
sourcepub fn v2023_11_09() -> BehaviorVersion
pub fn v2023_11_09() -> BehaviorVersion
This method returns the behavior configuration for November 9th, 2023
When a new behavior major version is released, this method will be deprecated.
Trait Implementations§
source§impl Clone for BehaviorVersion
impl Clone for BehaviorVersion
source§fn clone(&self) -> BehaviorVersion
fn clone(&self) -> BehaviorVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more