pub enum GtsIdError {
Segment {
num: usize,
offset: usize,
segment: String,
cause: String,
},
Id {
id: String,
cause: String,
},
}Expand description
Errors from GTS ID validation.
Variants§
Segment
A specific segment within the ID is invalid.
Fields
Id
The ID as a whole is invalid (prefix, case, length, etc.).
Trait Implementations§
Source§impl Debug for GtsIdError
impl Debug for GtsIdError
Source§impl Display for GtsIdError
impl Display for GtsIdError
Source§impl Error for GtsIdError
impl Error for GtsIdError
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()
Auto Trait Implementations§
impl Freeze for GtsIdError
impl RefUnwindSafe for GtsIdError
impl Send for GtsIdError
impl Sync for GtsIdError
impl Unpin for GtsIdError
impl UnsafeUnpin for GtsIdError
impl UnwindSafe for GtsIdError
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