pub enum OpaqueFieldError {
Empty {
field: &'static str,
},
TooLong {
field: &'static str,
length: usize,
},
InvalidCharacter {
field: &'static str,
index: usize,
},
}Expand description
Why an opaque token field (call_key, schema_pin) was refused. Every
variant names the request field it is about, so a provider can put it in
its invalid_request error without tracking which check ran.
Variants§
Empty
The value was the empty string. An absent value is None, never "".
TooLong
The value was longer than OPAQUE_FIELD_MAX_LEN bytes.
InvalidCharacter
The byte at index is not printable, non-space ASCII.
Implementations§
Trait Implementations§
Source§impl Clone for OpaqueFieldError
impl Clone for OpaqueFieldError
Source§impl Debug for OpaqueFieldError
impl Debug for OpaqueFieldError
Source§impl Display for OpaqueFieldError
impl Display for OpaqueFieldError
impl Eq for OpaqueFieldError
Source§impl Error for OpaqueFieldError
impl Error for OpaqueFieldError
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()
Source§impl PartialEq for OpaqueFieldError
impl PartialEq for OpaqueFieldError
impl StructuralPartialEq for OpaqueFieldError
Auto Trait Implementations§
impl Freeze for OpaqueFieldError
impl RefUnwindSafe for OpaqueFieldError
impl Send for OpaqueFieldError
impl Sync for OpaqueFieldError
impl Unpin for OpaqueFieldError
impl UnsafeUnpin for OpaqueFieldError
impl UnwindSafe for OpaqueFieldError
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