Enum soroban_env_guest::xdr::ScObject
pub enum ScObject {
Vec(ScVec),
Map(ScMap),
U64(u64),
I64(i64),
U128(Int128Parts),
I128(Int128Parts),
Bytes(BytesM<256000>),
ContractCode(ScContractCode),
AccountId(AccountId),
}
Variants§
Vec(ScVec)
Map(ScMap)
U64(u64)
I64(i64)
U128(Int128Parts)
I128(Int128Parts)
Bytes(BytesM<256000>)
ContractCode(ScContractCode)
AccountId(AccountId)
Implementations§
§impl ScObject
impl ScObject
pub const VARIANTS: [ScObjectType; 9] = [ScObjectType::Vec, ScObjectType::Map, ScObjectType::U64, ScObjectType::I64, ScObjectType::U128, ScObjectType::I128, ScObjectType::Bytes, ScObjectType::ContractCode, ScObjectType::AccountId]
pub const VARIANTS_STR: [&'static str; 9] = ["Vec", "Map", "U64", "I64", "U128", "I128", "Bytes", "ContractCode", "AccountId"]
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> ScObjectType
pub const fn variants() -> [ScObjectType; 9]
Trait Implementations§
§impl Discriminant<ScObjectType> for ScObject
impl Discriminant<ScObjectType> for ScObject
fn discriminant(&self) -> ScObjectType
§impl Ord for ScObject
impl Ord for ScObject
§impl PartialOrd<ScObject> for ScObject
impl PartialOrd<ScObject> for ScObject
§fn partial_cmp(&self, other: &ScObject) -> Option<Ordering>
fn partial_cmp(&self, other: &ScObject) -> 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