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: CryptoHashTrait 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§const fn clone_from(&mut self, source: &Self)
const 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<ContractCodeView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContractCodeView, <__D as Deserializer<'de>>::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) -> ContractCodeView
fn from(value: &ContractCodeView) -> ContractCodeView
Converts to this type from the input type.
Source§impl Serialize for ContractCodeView
impl Serialize for ContractCodeView
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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