pub enum RepoOwnerError {
Empty,
InvalidCharacters {
owner: String,
},
TooLong {
len: usize,
},
}
Expand description
Error type for repository owner validation.
Variants§
Empty
Repository owner name is empty
InvalidCharacters
Repository owner contains invalid characters
TooLong
Repository owner name exceeds maximum length
Trait Implementations§
Source§impl Debug for RepoOwnerError
impl Debug for RepoOwnerError
Source§impl Display for RepoOwnerError
impl Display for RepoOwnerError
Source§impl Error for RepoOwnerError
impl Error for RepoOwnerError
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<RepoOwnerError> for GitHubDocsError
impl From<RepoOwnerError> for GitHubDocsError
Source§fn from(source: RepoOwnerError) -> Self
fn from(source: RepoOwnerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RepoOwnerError
impl RefUnwindSafe for RepoOwnerError
impl Send for RepoOwnerError
impl Sync for RepoOwnerError
impl Unpin for RepoOwnerError
impl UnwindSafe for RepoOwnerError
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