pub struct RpcViewCodeResponse {
pub block_hash: CryptoHash,
pub block_height: u64,
pub code_base64: String,
pub hash: CryptoHash,
}Expand description
A view of the contract code.
JSON schema
{
"description": "A view of the contract code.",
"type": "object",
"required": [
"block_hash",
"block_height",
"code_base64",
"hash"
],
"properties": {
"block_hash": {
"$ref": "#/components/schemas/CryptoHash"
},
"block_height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"code_base64": {
"type": "string"
},
"hash": {
"$ref": "#/components/schemas/CryptoHash"
}
}
}Fields§
§block_hash: CryptoHash§block_height: u64§code_base64: String§hash: CryptoHashTrait Implementations§
Source§impl Clone for RpcViewCodeResponse
impl Clone for RpcViewCodeResponse
Source§fn clone(&self) -> RpcViewCodeResponse
fn clone(&self) -> RpcViewCodeResponse
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 RpcViewCodeResponse
impl Debug for RpcViewCodeResponse
Source§impl<'de> Deserialize<'de> for RpcViewCodeResponse
impl<'de> Deserialize<'de> for RpcViewCodeResponse
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
Source§impl From<&RpcViewCodeResponse> for RpcViewCodeResponse
impl From<&RpcViewCodeResponse> for RpcViewCodeResponse
Source§fn from(value: &RpcViewCodeResponse) -> Self
fn from(value: &RpcViewCodeResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RpcViewCodeResponse
impl RefUnwindSafe for RpcViewCodeResponse
impl Send for RpcViewCodeResponse
impl Sync for RpcViewCodeResponse
impl Unpin for RpcViewCodeResponse
impl UnsafeUnpin for RpcViewCodeResponse
impl UnwindSafe for RpcViewCodeResponse
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