pub struct RedirectConfig {
pub max_redirects: u8,
pub follow_redirects: bool,
}Expand description
Configuration for Azure SQL redirect handling.
Azure SQL Gateway may redirect connections to different backend servers. This configuration controls how the driver handles these redirects.
Fields§
§max_redirects: u8Maximum number of redirect attempts (default: 2).
follow_redirects: boolWhether to follow redirects automatically (default: true).
Implementations§
Source§impl RedirectConfig
impl RedirectConfig
Sourcepub fn max_redirects(self, max: u8) -> Self
pub fn max_redirects(self, max: u8) -> Self
Set the maximum number of redirect attempts.
Sourcepub fn follow_redirects(self, follow: bool) -> Self
pub fn follow_redirects(self, follow: bool) -> Self
Enable or disable automatic redirect following.
Trait Implementations§
Source§impl Clone for RedirectConfig
impl Clone for RedirectConfig
Source§fn clone(&self) -> RedirectConfig
fn clone(&self) -> RedirectConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RedirectConfig
impl Debug for RedirectConfig
Auto Trait Implementations§
impl Freeze for RedirectConfig
impl RefUnwindSafe for RedirectConfig
impl Send for RedirectConfig
impl Sync for RedirectConfig
impl Unpin for RedirectConfig
impl UnwindSafe for RedirectConfig
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