Enum starknet_api::StarknetApiError
source · pub enum StarknetApiError {
InnerDeserialization(InnerDeserializationError),
OutOfRange {
string: String,
},
ParseIntError(ParseIntError),
InvalidResourceMappingInitializer(String),
}Expand description
The error type returned by StarknetApi.
Variants§
InnerDeserialization(InnerDeserializationError)
Error in the inner deserialization of the node.
OutOfRange
An error for when a value is out of range.
ParseIntError(ParseIntError)
Error when serializing into number.
InvalidResourceMappingInitializer(String)
Missing resource type / duplicated resource type.
Trait Implementations§
source§impl Clone for StarknetApiError
impl Clone for StarknetApiError
source§fn clone(&self) -> StarknetApiError
fn clone(&self) -> StarknetApiError
Returns a copy 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 StarknetApiError
impl Debug for StarknetApiError
source§impl Display for StarknetApiError
impl Display for StarknetApiError
source§impl Error for StarknetApiError
impl Error for StarknetApiError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<InnerDeserializationError> for StarknetApiError
impl From<InnerDeserializationError> for StarknetApiError
source§fn from(source: InnerDeserializationError) -> Self
fn from(source: InnerDeserializationError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for StarknetApiError
impl From<ParseIntError> for StarknetApiError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for StarknetApiError
impl Send for StarknetApiError
impl Sync for StarknetApiError
impl Unpin for StarknetApiError
impl UnwindSafe for StarknetApiError
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