Struct soroban_sdk::accounts::AccountId
source · pub struct AccountId(_);
Expand description
Account ID is an identifier for an account.
The ID is opaque and does not expose the identifier to the contract, but the value can be used as a key in maps, or compared with other account identifiers.
In tests account identifiers can be generated using Accounts
.
Implementations§
Trait Implementations§
source§impl Ord for AccountId
impl Ord for AccountId
source§impl PartialOrd<AccountId> for AccountId
impl PartialOrd<AccountId> for AccountId
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 moresource§impl TryFromVal<Env, AccountId> for AccountId
impl TryFromVal<Env, AccountId> for AccountId
type Error = ConversionError
fn try_from_val(env: &Env, val: AccountId) -> Result<Self, Self::Error>
source§impl TryFromVal<Env, Object> for AccountId
impl TryFromVal<Env, Object> for AccountId
type Error = ConversionError
fn try_from_val(env: &Env, val: Object) -> Result<Self, Self::Error>
source§impl TryFromVal<Env, ScVal> for AccountId
impl TryFromVal<Env, ScVal> for AccountId
type Error = ConversionError
fn try_from_val(env: &Env, val: ScVal) -> Result<Self, Self::Error>
source§impl TryIntoVal<Env, AccountId> for AccountId
impl TryIntoVal<Env, AccountId> for AccountId
type Error = ConversionError
fn try_into_val(self, env: &Env) -> Result<AccountId, Self::Error>
fn try_into_env_val(self, env: &E) -> Result<EnvVal<E, V>, Self::Error>
source§impl TryIntoVal<Env, AccountId> for Object
impl TryIntoVal<Env, AccountId> for Object
source§impl TryIntoVal<Env, AccountId> for ScVal
impl TryIntoVal<Env, AccountId> for ScVal
type Error = ConversionError
fn try_into_val(self, env: &Env) -> Result<AccountId, Self::Error>
fn try_into_env_val(self, env: &E) -> Result<EnvVal<E, V>, Self::Error>
impl Eq for AccountId
Auto Trait Implementations§
impl !RefUnwindSafe for AccountId
impl !Send for AccountId
impl !Sync for AccountId
impl Unpin for AccountId
impl !UnwindSafe for AccountId
Blanket Implementations§
source§impl<T> Deserialize for Twhere
T: TryFromVal<Env, RawVal>,
impl<T> Deserialize for Twhere
T: TryFromVal<Env, RawVal>,
type Error = <T as TryFromVal<Env, RawVal>>::Error
fn deserialize(env: &Env, b: &Bytes) -> Result<T, <T as Deserialize>::Error>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more