pub struct Config { /* private fields */ }
Expand description
Deprecated configuration API.
Implementations§
source§impl Config
impl Config
sourcepub fn use_std3_ascii_rules(self, value: bool) -> Self
pub fn use_std3_ascii_rules(self, value: bool) -> Self
Whether to enforce STD3 or WHATWG URL Standard ASCII deny list.
true
for STD3, false
for no deny list.
Note that true
rejects pseudo-hosts used by various TXT record-based protocols.
sourcepub fn transitional_processing(self, value: bool) -> Self
pub fn transitional_processing(self, value: bool) -> Self
Whether to enable (deprecated) transitional processing.
Note that Firefox, Safari, and Chrome do not use transitional processing.
sourcepub fn verify_dns_length(self, value: bool) -> Self
pub fn verify_dns_length(self, value: bool) -> Self
Whether the VerifyDNSLength operation should be performed
by to_ascii
.
For compatibility with previous behavior, even when set to true
,
the trailing root label dot is allowed contrary to the spec.
sourcepub fn check_hyphens(self, value: bool) -> Self
pub fn check_hyphens(self, value: bool) -> Self
Whether to enforce STD3 rules for hyphen placement.
true
to deny hyphens in the first and last positions.
false
to not enforce hyphen placement.
Note that for backward compatibility this is not the same as UTS 46 CheckHyphens, which also disallows hyphens in the third and fourth positions.
Note that true
rejects real-world names, including some GitHub user pages.
sourcepub fn use_idna_2008_rules(self, value: bool) -> Self
pub fn use_idna_2008_rules(self, value: bool) -> Self
Obsolete method retained to ease migration. The argument must be false
.
Panics
If the argument is true
.
Trait Implementations§
source§impl Default for Config
impl Default for Config
The defaults are that of beStrict=false in the WHATWG URL Standard
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)