pub struct ResourceFetchError {
pub resource_name_short: String,
pub resource_name_full: String,
}Expand description
Indicates a resource that did not exist in Resources.
Fields§
§resource_name_short: StringShort type name of the CmdBlock::Input type.
resource_name_full: StringFull type name of the CmdBlock::Input type.
Implementations§
Source§impl ResourceFetchError
impl ResourceFetchError
Sourcepub fn resource_name_short(&self) -> &str
pub fn resource_name_short(&self) -> &str
Returns the short type name, e.g. String
For generic types, this returns the short type names for the type and
the parameter, e.g. Option<String>.
Sourcepub fn resource_name_full(&self) -> &str
pub fn resource_name_full(&self) -> &str
Returns the full type name, e.g. std::string::String
For generic types, this returns the short type names for the type and
the parameter, e.g. std::option::Option<std::string::String>.
Trait Implementations§
Source§impl Clone for ResourceFetchError
impl Clone for ResourceFetchError
Source§fn clone(&self) -> ResourceFetchError
fn clone(&self) -> ResourceFetchError
Returns a duplicate of the value. Read more
1.0.0 · 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 ResourceFetchError
impl Debug for ResourceFetchError
Source§impl Display for ResourceFetchError
impl Display for ResourceFetchError
Source§impl Error for ResourceFetchError
impl Error for ResourceFetchError
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 ResourceFetchError
impl PartialEq for ResourceFetchError
impl Eq for ResourceFetchError
impl StructuralPartialEq for ResourceFetchError
Auto Trait Implementations§
impl Freeze for ResourceFetchError
impl RefUnwindSafe for ResourceFetchError
impl Send for ResourceFetchError
impl Sync for ResourceFetchError
impl Unpin for ResourceFetchError
impl UnwindSafe for ResourceFetchError
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.