pub struct ArcVirtualKeyFailoverResponse {
pub targets: Vec<ArcFailoverTarget>,
pub timeout_enabled: bool,
pub rate_limit_429_enabled: bool,
pub server_error_5xx_enabled: bool,
}Expand description
ArcVirtualKeyFailoverResponse : A virtual key’s failover policy. targets are tried in order after the primary request fails and one of the enabled error conditions is met.
Fields§
§targets: Vec<ArcFailoverTarget>The provider connections to retry against, in order.
timeout_enabled: boolWhether a request timeout triggers failover.
rate_limit_429_enabled: boolWhether a 429 Too Many Requests response from the provider triggers failover.
server_error_5xx_enabled: boolWhether a 5xx server error response from the provider triggers failover.
Implementations§
Source§impl ArcVirtualKeyFailoverResponse
impl ArcVirtualKeyFailoverResponse
Sourcepub fn new(
targets: Vec<ArcFailoverTarget>,
timeout_enabled: bool,
rate_limit_429_enabled: bool,
server_error_5xx_enabled: bool,
) -> ArcVirtualKeyFailoverResponse
pub fn new( targets: Vec<ArcFailoverTarget>, timeout_enabled: bool, rate_limit_429_enabled: bool, server_error_5xx_enabled: bool, ) -> ArcVirtualKeyFailoverResponse
A virtual key’s failover policy. targets are tried in order after the primary request fails and one of the enabled error conditions is met.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ArcVirtualKeyFailoverResponse
impl<'de> Deserialize<'de> for ArcVirtualKeyFailoverResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ArcVirtualKeyFailoverResponse
Auto Trait Implementations§
impl Freeze for ArcVirtualKeyFailoverResponse
impl RefUnwindSafe for ArcVirtualKeyFailoverResponse
impl Send for ArcVirtualKeyFailoverResponse
impl Sync for ArcVirtualKeyFailoverResponse
impl Unpin for ArcVirtualKeyFailoverResponse
impl UnsafeUnpin for ArcVirtualKeyFailoverResponse
impl UnwindSafe for ArcVirtualKeyFailoverResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more