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
sourceimpl IntoVal<Env, Object> for &AccountId
impl IntoVal<Env, Object> for &AccountId
fn into_val(self, _env: &Env) -> Object
fn into_env_val(self, env: &E) -> EnvVal<E, V>
sourceimpl IntoVal<Env, Object> for AccountId
impl IntoVal<Env, Object> for AccountId
fn into_val(self, _env: &Env) -> Object
fn into_env_val(self, env: &E) -> EnvVal<E, V>
sourceimpl Ord for AccountId
impl Ord for AccountId
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<AccountId> for AccountId
impl PartialOrd<AccountId> for AccountId
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl 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>
sourceimpl 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>
sourceimpl TryFromVal<Env, RawVal> for AccountId
impl TryFromVal<Env, RawVal> for AccountId
sourceimpl 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>
sourceimpl 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>
sourceimpl TryIntoVal<Env, AccountId> for Object
impl TryIntoVal<Env, AccountId> for Object
type Error = <AccountId as TryFromVal<Env, Object>>::Error
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>
sourceimpl TryIntoVal<Env, AccountId> for RawVal
impl TryIntoVal<Env, AccountId> for RawVal
type Error = <AccountId as TryFromVal<Env, Object>>::Error
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>
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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 morefn 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 morefn 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 morefn 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