pub enum GlobalContractIdentifier {
CodeHash(CryptoHash),
AccountId(AccountId),
}
Expand description
GlobalContractIdentifier
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"CodeHash"
],
"properties": {
"CodeHash": {
"$ref": "#/components/schemas/CryptoHash"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"AccountId"
],
"properties": {
"AccountId": {
"$ref": "#/components/schemas/AccountId"
}
},
"additionalProperties": false
}
]
}
Variants§
CodeHash(CryptoHash)
AccountId(AccountId)
Trait Implementations§
Source§impl Clone for GlobalContractIdentifier
impl Clone for GlobalContractIdentifier
Source§fn clone(&self) -> GlobalContractIdentifier
fn clone(&self) -> GlobalContractIdentifier
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 GlobalContractIdentifier
impl Debug for GlobalContractIdentifier
Source§impl<'de> Deserialize<'de> for GlobalContractIdentifier
impl<'de> Deserialize<'de> for GlobalContractIdentifier
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<&GlobalContractIdentifier> for GlobalContractIdentifier
impl From<&GlobalContractIdentifier> for GlobalContractIdentifier
Source§fn from(value: &GlobalContractIdentifier) -> Self
fn from(value: &GlobalContractIdentifier) -> Self
Converts to this type from the input type.
Source§impl From<AccountId> for GlobalContractIdentifier
impl From<AccountId> for GlobalContractIdentifier
Source§impl From<CryptoHash> for GlobalContractIdentifier
impl From<CryptoHash> for GlobalContractIdentifier
Source§fn from(value: CryptoHash) -> Self
fn from(value: CryptoHash) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GlobalContractIdentifier
impl RefUnwindSafe for GlobalContractIdentifier
impl Send for GlobalContractIdentifier
impl Sync for GlobalContractIdentifier
impl Unpin for GlobalContractIdentifier
impl UnwindSafe for GlobalContractIdentifier
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