pub struct ContractCodeView {
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": [
"code_base64",
"hash"
],
"properties": {
"code_base64": {
"type": "string"
},
"hash": {
"$ref": "#/components/schemas/CryptoHash"
}
}
}
Fields§
§code_base64: String
§hash: CryptoHash
Trait Implementations§
Source§impl Clone for ContractCodeView
impl Clone for ContractCodeView
Source§fn clone(&self) -> ContractCodeView
fn clone(&self) -> ContractCodeView
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 ContractCodeView
impl Debug for ContractCodeView
Source§impl<'de> Deserialize<'de> for ContractCodeView
impl<'de> Deserialize<'de> for ContractCodeView
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<&ContractCodeView> for ContractCodeView
impl From<&ContractCodeView> for ContractCodeView
Source§fn from(value: &ContractCodeView) -> Self
fn from(value: &ContractCodeView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContractCodeView
impl RefUnwindSafe for ContractCodeView
impl Send for ContractCodeView
impl Sync for ContractCodeView
impl Unpin for ContractCodeView
impl UnwindSafe for ContractCodeView
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