pub struct RestConfig {
pub base_url: String,
pub timeout_secs: u64,
pub max_retries: u32,
}Expand description
Configuration for REST API connections
Fields§
§base_url: StringBase URL for the REST API endpoint
timeout_secs: u64Request timeout in seconds
max_retries: u32Maximum number of retry attempts for failed requests
Trait Implementations§
Source§impl Clone for RestConfig
impl Clone for RestConfig
Source§fn clone(&self) -> RestConfig
fn clone(&self) -> RestConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RestConfig
impl Debug for RestConfig
Auto Trait Implementations§
impl Freeze for RestConfig
impl RefUnwindSafe for RestConfig
impl Send for RestConfig
impl Sync for RestConfig
impl Unpin for RestConfig
impl UnwindSafe for RestConfig
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