#[non_exhaustive]pub enum FullNameError {
Show 15 variants
Empty,
Urn(String),
Scheme(String),
Relative(String),
BareId(String),
UnknownService {
name: String,
host: String,
},
NotGlobalHost {
name: String,
host: String,
service: String,
},
Version {
name: String,
version: String,
},
NoRelativeName(String),
NotRelative(String),
TrailingSlash(String),
EmptySegment(String),
DotSegment {
name: String,
segment: String,
},
InvalidSegment {
name: String,
segment: String,
},
NotAVersion(String),
}Expand description
Why a string is not a full resource name, or not one that can be used where it was given.
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.
Empty
An empty string.
Urn(String)
A URN, urn:….
Scheme(String)
A URL, or anything else with a scheme.
Relative(String)
A relative name where a full one is expected.
BareId(String)
A bare id, with no collection.
UnknownService
A host that is no service’s.
NotGlobalHost
A regional or zonal host, a front door rather than the service.
Fields
Version
An API version in the name.
NoRelativeName(String)
A service’s host with nothing after it.
NotRelative(String)
A full name where a relative one is expected.
TrailingSlash(String)
A name ending in /.
EmptySegment(String)
A name with an empty segment.
DotSegment
A name with a . or .. segment.
InvalidSegment
A segment with a character a name can’t hold.
NotAVersion(String)
FullName::url given something that is no API version.
Trait Implementations§
Source§impl Clone for FullNameError
impl Clone for FullNameError
Source§impl Debug for FullNameError
impl Debug for FullNameError
Source§impl Display for FullNameError
impl Display for FullNameError
impl Eq for FullNameError
Source§impl Error for FullNameError
impl Error for FullNameError
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 FullNameError
impl PartialEq for FullNameError
impl StructuralPartialEq for FullNameError
Auto Trait Implementations§
impl Forget for FullNameError
impl Freeze for FullNameError
impl Move for FullNameError
impl RefUnwindSafe for FullNameError
impl Send for FullNameError
impl Sync for FullNameError
impl Unpin for FullNameError
impl UnsafeUnpin for FullNameError
impl UnwindSafe for FullNameError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.