pub enum TrustedOriginError {
Empty,
NotHttp,
NotTrusted {
origin: String,
},
}Expand description
Reasons a redirect URL might be rejected by validate_trusted_redirect.
Variants§
Trait Implementations§
Source§impl Clone for TrustedOriginError
impl Clone for TrustedOriginError
Source§fn clone(&self) -> TrustedOriginError
fn clone(&self) -> TrustedOriginError
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 TrustedOriginError
impl Debug for TrustedOriginError
Source§impl Display for TrustedOriginError
impl Display for TrustedOriginError
Source§impl PartialEq for TrustedOriginError
impl PartialEq for TrustedOriginError
Source§fn eq(&self, other: &TrustedOriginError) -> bool
fn eq(&self, other: &TrustedOriginError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TrustedOriginError
impl StructuralPartialEq for TrustedOriginError
Auto Trait Implementations§
impl Freeze for TrustedOriginError
impl RefUnwindSafe for TrustedOriginError
impl Send for TrustedOriginError
impl Sync for TrustedOriginError
impl Unpin for TrustedOriginError
impl UnsafeUnpin for TrustedOriginError
impl UnwindSafe for TrustedOriginError
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