pub struct SiteConfig { /* private fields */ }Expand description
A site configuration.
Implementations§
Source§impl SiteConfig
impl SiteConfig
Sourcepub const fn cache(&self) -> &CacheConfig
pub const fn cache(&self) -> &CacheConfig
Returns a cache configuration.
Sourcepub const fn fragments_ignored(&self) -> bool
pub const fn fragments_ignored(&self) -> bool
Returns whether URL fragments should be ignored.
Sourcepub const fn retry(&self) -> &Arc<RetryConfig>
pub const fn retry(&self) -> &Arc<RetryConfig>
Returns a retry configuration.
Sourcepub const fn status(&self) -> &StatusConfig
pub const fn status(&self) -> &StatusConfig
Returns a status code configuration.
Sourcepub const fn scheme(&self) -> &SchemeConfig
pub const fn scheme(&self) -> &SchemeConfig
Returns a scheme configuration.
Sourcepub const fn max_redirects(&self) -> usize
pub const fn max_redirects(&self) -> usize
Returns a maximum number of redirects.
Sourcepub const fn recursive(&self) -> bool
pub const fn recursive(&self) -> bool
Returns whether we should validate the website recursively.
Sourcepub const fn validation(&self) -> &ValidationConfig
pub const fn validation(&self) -> &ValidationConfig
Returns a validation configuration.
Sourcepub const fn set_cache(self, cache: CacheConfig) -> Self
pub const fn set_cache(self, cache: CacheConfig) -> Self
Sets a cache configuration.
Sourcepub const fn set_fragments_ignored(self, ignored: bool) -> Self
pub const fn set_fragments_ignored(self, ignored: bool) -> Self
Sets whether URL fragments are ignored.
Sourcepub fn set_headers(self, headers: HeaderMap) -> Self
pub fn set_headers(self, headers: HeaderMap) -> Self
Sets request headers.
Sourcepub fn set_retry(self, retry: Arc<RetryConfig>) -> Self
pub fn set_retry(self, retry: Arc<RetryConfig>) -> Self
Sets a retry configuration.
Sourcepub fn set_status(self, status: StatusConfig) -> Self
pub fn set_status(self, status: StatusConfig) -> Self
Sets a status code configuration.
Sourcepub fn set_scheme(self, scheme: SchemeConfig) -> Self
pub fn set_scheme(self, scheme: SchemeConfig) -> Self
Sets a scheme configuration.
Sourcepub const fn set_max_redirects(self, count: usize) -> Self
pub const fn set_max_redirects(self, count: usize) -> Self
Sets a maximum number of redirects.
Sourcepub const fn set_timeout(self, duration: Option<Duration>) -> Self
pub const fn set_timeout(self, duration: Option<Duration>) -> Self
Sets a timeout.
Sourcepub const fn set_recursive(self, recursive: bool) -> Self
pub const fn set_recursive(self, recursive: bool) -> Self
Sets whether we should validate the website recursively
Sourcepub fn set_validation(self, validation: ValidationConfig) -> Self
pub fn set_validation(self, validation: ValidationConfig) -> Self
Sets a validation configuration.
Trait Implementations§
Source§impl Clone for SiteConfig
impl Clone for SiteConfig
Source§fn clone(&self) -> SiteConfig
fn clone(&self) -> SiteConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SiteConfig
impl Debug for SiteConfig
Source§impl Default for SiteConfig
impl Default for SiteConfig
Source§fn default() -> SiteConfig
fn default() -> SiteConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SiteConfig
impl PartialEq for SiteConfig
impl StructuralPartialEq for SiteConfig
Auto Trait Implementations§
impl Freeze for SiteConfig
impl RefUnwindSafe for SiteConfig
impl Send for SiteConfig
impl Sync for SiteConfig
impl Unpin for SiteConfig
impl UnsafeUnpin for SiteConfig
impl UnwindSafe for SiteConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more