Enum soroban_env_guest::xdr::ContractId
pub enum ContractId {
SourceAccount(Uint256),
Ed25519PublicKey(ContractIdFromEd25519PublicKey),
Asset(Asset),
}
Variants§
Implementations§
§impl ContractId
impl ContractId
pub const VARIANTS: [ContractIdType; 3] = [ContractIdType::SourceAccount, ContractIdType::Ed25519PublicKey, ContractIdType::Asset]
pub const VARIANTS_STR: [&'static str; 3] = ["SourceAccount", "Ed25519PublicKey", "Asset"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> ContractIdType
pub const fn variants() -> [ContractIdType; 3]
Trait Implementations§
§impl Clone for ContractId
impl Clone for ContractId
§fn clone(&self) -> ContractId
fn clone(&self) -> ContractId
Returns a copy 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 more§impl Debug for ContractId
impl Debug for ContractId
§impl Discriminant<ContractIdType> for ContractId
impl Discriminant<ContractIdType> for ContractId
fn discriminant(&self) -> ContractIdType
§impl Hash for ContractId
impl Hash for ContractId
§impl Ord for ContractId
impl Ord for ContractId
§impl PartialEq<ContractId> for ContractId
impl PartialEq<ContractId> for ContractId
§fn eq(&self, other: &ContractId) -> bool
fn eq(&self, other: &ContractId) -> bool
§impl PartialOrd<ContractId> for ContractId
impl PartialOrd<ContractId> for ContractId
§fn partial_cmp(&self, other: &ContractId) -> Option<Ordering>
fn partial_cmp(&self, other: &ContractId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more