pub enum DisallowUrlsWithPrefixError {
PrefixFound {
url: String,
prefix: String,
},
}Expand description
An error which can occur when checking for disallowed link prefixes.
Variants§
Trait Implementations§
Source§impl Clone for DisallowUrlsWithPrefixError
impl Clone for DisallowUrlsWithPrefixError
Source§fn clone(&self) -> DisallowUrlsWithPrefixError
fn clone(&self) -> DisallowUrlsWithPrefixError
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 DisallowUrlsWithPrefixError
impl Debug for DisallowUrlsWithPrefixError
Source§impl Error for DisallowUrlsWithPrefixError
impl Error for DisallowUrlsWithPrefixError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DisallowUrlsWithPrefixError
impl RefUnwindSafe for DisallowUrlsWithPrefixError
impl Send for DisallowUrlsWithPrefixError
impl Sync for DisallowUrlsWithPrefixError
impl Unpin for DisallowUrlsWithPrefixError
impl UnsafeUnpin for DisallowUrlsWithPrefixError
impl UnwindSafe for DisallowUrlsWithPrefixError
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