pub enum SubstitutionFail {
Unset,
UnsetExpecting(&'static str),
MismatchExpecting(String, &'static str),
}Expand description
Ways substituting a variable from a request into a URI can fail.
Variants§
Unset
A required field was not set
UnsetExpecting(&'static str)
A required field of a certain format was not set
MismatchExpecting(String, &'static str)
A required field was set, but to an invalid format
§Parameters
- self.0 - the actual value of the field
- self.1 - the expected format of the field
Trait Implementations§
Source§impl Debug for SubstitutionFail
impl Debug for SubstitutionFail
Source§impl PartialEq for SubstitutionFail
impl PartialEq for SubstitutionFail
impl StructuralPartialEq for SubstitutionFail
Auto Trait Implementations§
impl Freeze for SubstitutionFail
impl RefUnwindSafe for SubstitutionFail
impl Send for SubstitutionFail
impl Sync for SubstitutionFail
impl Unpin for SubstitutionFail
impl UnwindSafe for SubstitutionFail
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