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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)