#[non_exhaustive]pub enum EndpointUriError {
DuplicateKey {
key: String,
},
MissingScheme,
EmptyQueryKey,
InvalidParamKey {
key: String,
},
}Expand description
Typed error for constructing an EndpointUri from a base URI
plus a parameters: map.
Every variant names the offending key or input in its Display text so failures
are diagnosable without losing the context of what was rejected.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DuplicateKey
A parameters: key collides with a key already present in the base URI query.
MissingScheme
The base URI has no non-empty scheme (no : before the path).
EmptyQueryKey
The base URI query contains a pair with an empty key (e.g. ?=value).
InvalidParamKey
A parameters: key is empty or contains a reserved/unsafe character.
Trait Implementations§
Source§impl Clone for EndpointUriError
impl Clone for EndpointUriError
Source§fn clone(&self) -> EndpointUriError
fn clone(&self) -> EndpointUriError
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 EndpointUriError
impl Debug for EndpointUriError
Source§impl Display for EndpointUriError
impl Display for EndpointUriError
impl Eq for EndpointUriError
Source§impl Error for EndpointUriError
impl Error for EndpointUriError
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 From<EndpointUriError> for CamelError
impl From<EndpointUriError> for CamelError
Source§fn from(e: EndpointUriError) -> Self
fn from(e: EndpointUriError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EndpointUriError
impl PartialEq for EndpointUriError
impl StructuralPartialEq for EndpointUriError
Auto Trait Implementations§
impl Freeze for EndpointUriError
impl RefUnwindSafe for EndpointUriError
impl Send for EndpointUriError
impl Sync for EndpointUriError
impl Unpin for EndpointUriError
impl UnsafeUnpin for EndpointUriError
impl UnwindSafe for EndpointUriError
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