pub enum BSCContractSourceCodeResult {
Success(Vec<BSCContractSourceCode>),
Failed(String),
}Expand description
Structure holding variant response fro field reuslt of Contracts’s
getting contract code API.
Variants§
Success(Vec<BSCContractSourceCode>)
Failed(String)
This also includes the case of querying for non-verified source code.
Although it is not error / failed case per-se as its abi field will
contain exactly “Contract source code not verified”. But it is included
as failed case as well.
Trait Implementations§
Source§impl Debug for BSCContractSourceCodeResult
impl Debug for BSCContractSourceCodeResult
Source§impl<'de> Deserialize<'de> for BSCContractSourceCodeResult
impl<'de> Deserialize<'de> for BSCContractSourceCodeResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BSCContractSourceCodeResult
impl RefUnwindSafe for BSCContractSourceCodeResult
impl Send for BSCContractSourceCodeResult
impl Sync for BSCContractSourceCodeResult
impl Unpin for BSCContractSourceCodeResult
impl UnwindSafe for BSCContractSourceCodeResult
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