pub struct HostnameValidator { /* private fields */ }Expand description
Hostname/domain validator
Implementations§
Source§impl HostnameValidator
impl HostnameValidator
pub fn new() -> Self
pub fn with_priority(self, priority: Priority) -> Self
pub fn with_message(self, message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for HostnameValidator
impl Debug for HostnameValidator
Source§impl Validator for HostnameValidator
impl Validator for HostnameValidator
Source§fn validate(&self, input: &str) -> ValidationResult
fn validate(&self, input: &str) -> ValidationResult
Validate complete input
Source§fn partial_validate(
&self,
input: &str,
_cursor_pos: usize,
) -> PartialValidationResult
fn partial_validate( &self, input: &str, _cursor_pos: usize, ) -> PartialValidationResult
Validate partial input during typing
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get human-readable description of this validator
Auto Trait Implementations§
impl Freeze for HostnameValidator
impl RefUnwindSafe for HostnameValidator
impl Send for HostnameValidator
impl Sync for HostnameValidator
impl Unpin for HostnameValidator
impl UnwindSafe for HostnameValidator
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