pub struct HttpBaseUrlOptions {
pub allow_empty: bool,
pub forbid_query_fragment: bool,
}Expand description
Options for normalize_http_base_url.
Fields§
§allow_empty: boolWhether empty input should return None.
forbid_query_fragment: boolWhether query strings and fragments should be rejected.
Implementations§
Source§impl HttpBaseUrlOptions
impl HttpBaseUrlOptions
Sourcepub const fn required_without_query_fragment() -> Self
pub const fn required_without_query_fragment() -> Self
Creates options for a required base URL without query or fragment components.
Sourcepub const fn optional_without_query_fragment() -> Self
pub const fn optional_without_query_fragment() -> Self
Creates options for an optional base URL without query or fragment components.
Trait Implementations§
Source§impl Clone for HttpBaseUrlOptions
impl Clone for HttpBaseUrlOptions
Source§fn clone(&self) -> HttpBaseUrlOptions
fn clone(&self) -> HttpBaseUrlOptions
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 HttpBaseUrlOptions
impl Debug for HttpBaseUrlOptions
Source§impl PartialEq for HttpBaseUrlOptions
impl PartialEq for HttpBaseUrlOptions
Source§fn eq(&self, other: &HttpBaseUrlOptions) -> bool
fn eq(&self, other: &HttpBaseUrlOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HttpBaseUrlOptions
impl Eq for HttpBaseUrlOptions
impl StructuralPartialEq for HttpBaseUrlOptions
Auto Trait Implementations§
impl Freeze for HttpBaseUrlOptions
impl RefUnwindSafe for HttpBaseUrlOptions
impl Send for HttpBaseUrlOptions
impl Sync for HttpBaseUrlOptions
impl Unpin for HttpBaseUrlOptions
impl UnsafeUnpin for HttpBaseUrlOptions
impl UnwindSafe for HttpBaseUrlOptions
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