pub struct ResourceError { /* private fields */ }Expand description
Why a string is not a valid forge-qualified resource.
The Display form names the offending input and suggests the fix, so it
can be shown to an operator as-is.
Implementations§
Source§impl ResourceError
impl ResourceError
Sourcepub fn kind(&self) -> &ResourceErrorKind
pub fn kind(&self) -> &ResourceErrorKind
The rule that was broken.
Sourcepub fn describe(&self, what: &str) -> String
pub fn describe(&self, what: &str) -> String
The message, naming the value what (--resource, resource derived from GITHUB_REPOSITORY, …). fmt::Display is
describe("resource").
Trait Implementations§
Source§impl Clone for ResourceError
impl Clone for ResourceError
Source§impl Debug for ResourceError
impl Debug for ResourceError
Source§impl Display for ResourceError
impl Display for ResourceError
impl Eq for ResourceError
Source§impl Error for ResourceError
impl Error for ResourceError
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 ResourceError
impl PartialEq for ResourceError
impl StructuralPartialEq for ResourceError
Auto Trait Implementations§
impl Freeze for ResourceError
impl RefUnwindSafe for ResourceError
impl Send for ResourceError
impl Sync for ResourceError
impl Unpin for ResourceError
impl UnsafeUnpin for ResourceError
impl UnwindSafe for ResourceError
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