#[non_exhaustive]pub struct RefgetConfig {
pub server_url: String,
pub timeout: Duration,
pub max_concurrent: usize,
}Expand description
Configuration for refget server lookups.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.server_url: StringBase URL of the refget server.
timeout: DurationTimeout for each individual HTTP request.
max_concurrent: usizeMaximum number of concurrent requests to the refget server.
Implementations§
Trait Implementations§
Source§impl Clone for RefgetConfig
impl Clone for RefgetConfig
Source§fn clone(&self) -> RefgetConfig
fn clone(&self) -> RefgetConfig
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 RefgetConfig
impl Debug for RefgetConfig
Auto Trait Implementations§
impl Freeze for RefgetConfig
impl RefUnwindSafe for RefgetConfig
impl Send for RefgetConfig
impl Sync for RefgetConfig
impl Unpin for RefgetConfig
impl UnsafeUnpin for RefgetConfig
impl UnwindSafe for RefgetConfig
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