pub enum AccountOwner {
Reserved(u8),
Address32(CryptoHash),
Address20([u8; 20]),
}Expand description
An account owner.
Variants§
Reserved(u8)
Short addresses reserved for the protocol.
Address32(CryptoHash)
32-byte account address.
Address20([u8; 20])
20-byte account EVM-compatible address.
Implementations§
Trait Implementations§
Source§impl Allocative for AccountOwner
impl Allocative for AccountOwner
Source§impl Clone for AccountOwner
impl Clone for AccountOwner
Source§fn clone(&self) -> AccountOwner
fn clone(&self) -> AccountOwner
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 AccountOwner
impl Debug for AccountOwner
Source§impl<'de> Deserialize<'de> for AccountOwner
impl<'de> Deserialize<'de> for AccountOwner
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AccountOwner
impl Display for AccountOwner
Source§impl From<AccountPublicKey> for AccountOwner
impl From<AccountPublicKey> for AccountOwner
Source§fn from(public_key: AccountPublicKey) -> Self
fn from(public_key: AccountPublicKey) -> Self
Converts to this type from the input type.
Source§impl<A> From<ApplicationId<A>> for AccountOwner
impl<A> From<ApplicationId<A>> for AccountOwner
Source§fn from(app_id: ApplicationId<A>) -> Self
fn from(app_id: ApplicationId<A>) -> Self
Converts to this type from the input type.
Source§impl From<Ed25519PublicKey> for AccountOwner
impl From<Ed25519PublicKey> for AccountOwner
Source§fn from(public_key: Ed25519PublicKey) -> Self
fn from(public_key: Ed25519PublicKey) -> Self
Converts to this type from the input type.
Source§impl From<EvmPublicKey> for AccountOwner
impl From<EvmPublicKey> for AccountOwner
Source§fn from(public_key: EvmPublicKey) -> Self
fn from(public_key: EvmPublicKey) -> Self
Converts to this type from the input type.
Source§impl From<Secp256k1PublicKey> for AccountOwner
impl From<Secp256k1PublicKey> for AccountOwner
Source§fn from(public_key: Secp256k1PublicKey) -> Self
fn from(public_key: Secp256k1PublicKey) -> Self
Converts to this type from the input type.
Source§impl FromStr for AccountOwner
impl FromStr for AccountOwner
Source§impl Hash for AccountOwner
impl Hash for AccountOwner
Source§impl InputType for AccountOwner
impl InputType for AccountOwner
Source§type RawValueType = AccountOwner
type RawValueType = AccountOwner
The raw type used for validator. Read more
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value. None represents undefined.Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl Ord for AccountOwner
impl Ord for AccountOwner
Source§fn cmp(&self, other: &AccountOwner) -> Ordering
fn cmp(&self, other: &AccountOwner) -> Ordering
1.21.0 · Source§fn 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
Source§impl OutputType for AccountOwner
impl OutputType for AccountOwner
Source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
Source§async fn resolve(
&self,
_: &ContextSelectionSet<'_>,
_field: &Positioned<Field>,
) -> ServerResult<Value>
async fn resolve( &self, _: &ContextSelectionSet<'_>, _field: &Positioned<Field>, ) -> ServerResult<Value>
Resolve an output value to
async_graphql::Value.Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl PartialEq for AccountOwner
impl PartialEq for AccountOwner
Source§impl PartialOrd for AccountOwner
impl PartialOrd for AccountOwner
Source§impl ScalarType for AccountOwner
impl ScalarType for AccountOwner
Source§impl Serialize for AccountOwner
impl Serialize for AccountOwner
Source§impl WitLoad for AccountOwner
impl WitLoad for AccountOwner
Source§fn load<Instance>(
memory: &Memory<'_, Instance>,
location: GuestPointer,
) -> Result<Self, RuntimeError>where
Instance: InstanceWithMemory,
<Instance::Runtime as Runtime>::Memory: RuntimeMemory<Instance>,
fn load<Instance>(
memory: &Memory<'_, Instance>,
location: GuestPointer,
) -> Result<Self, RuntimeError>where
Instance: InstanceWithMemory,
<Instance::Runtime as Runtime>::Memory: RuntimeMemory<Instance>,
Loads an instance of the type from the
location in the guest’s memory.Source§fn lift_from<Instance>(
_: <Self::Layout as Layout>::Flat,
memory: &Memory<'_, Instance>,
) -> Result<Self, RuntimeError>where
Instance: InstanceWithMemory,
<Instance::Runtime as Runtime>::Memory: RuntimeMemory<Instance>,
fn lift_from<Instance>(
_: <Self::Layout as Layout>::Flat,
memory: &Memory<'_, Instance>,
) -> Result<Self, RuntimeError>where
Instance: InstanceWithMemory,
<Instance::Runtime as Runtime>::Memory: RuntimeMemory<Instance>,
Lifts an instance of the type from the
flat_layout representation. Read moreSource§impl WitStore for AccountOwner
impl WitStore for AccountOwner
Source§fn store<Instance>(
&self,
memory: &mut Memory<'_, Instance>,
location: GuestPointer,
) -> Result<(), RuntimeError>where
Instance: InstanceWithMemory,
<Instance::Runtime as Runtime>::Memory: RuntimeMemory<Instance>,
fn store<Instance>(
&self,
memory: &mut Memory<'_, Instance>,
location: GuestPointer,
) -> Result<(), RuntimeError>where
Instance: InstanceWithMemory,
<Instance::Runtime as Runtime>::Memory: RuntimeMemory<Instance>,
Stores the type at the
location in the guest’s memory.Source§fn lower<Instance>(
&self,
memory: &mut Memory<'_, Instance>,
) -> Result<<Self::Layout as Layout>::Flat, RuntimeError>where
Instance: InstanceWithMemory,
<Instance::Runtime as Runtime>::Memory: RuntimeMemory<Instance>,
fn lower<Instance>(
&self,
memory: &mut Memory<'_, Instance>,
) -> Result<<Self::Layout as Layout>::Flat, RuntimeError>where
Instance: InstanceWithMemory,
<Instance::Runtime as Runtime>::Memory: RuntimeMemory<Instance>,
Lowers the type into its flat layout representation. Read more
Source§impl WitType for AccountOwner
impl WitType for AccountOwner
Source§type Layout = HCons<u8, <<HCons<u8, HNil> as WitType>::Layout as Merge<<<HCons<CryptoHash, HNil> as WitType>::Layout as Merge<<HCons<[u8; 20], HNil> as WitType>::Layout>>::Output>>::Output>
type Layout = HCons<u8, <<HCons<u8, HNil> as WitType>::Layout as Merge<<<HCons<CryptoHash, HNil> as WitType>::Layout as Merge<<HCons<[u8; 20], HNil> as WitType>::Layout>>::Output>>::Output>
The layout of the type as fundamental types.
Source§type Dependencies = HCons<u8, HCons<CryptoHash, HCons<[u8; 20], HNil>>>
type Dependencies = HCons<u8, HCons<CryptoHash, HCons<[u8; 20], HNil>>>
Other
WitTypes that this type depends on.Source§fn wit_type_name() -> Cow<'static, str>
fn wit_type_name() -> Cow<'static, str>
Generates the WIT type name for this type.
Source§fn wit_type_declaration() -> Cow<'static, str>
fn wit_type_declaration() -> Cow<'static, str>
Generates the WIT type declaration for this type.
impl Copy for AccountOwner
impl Eq for AccountOwner
impl StructuralPartialEq for AccountOwner
Auto Trait Implementations§
impl Freeze for AccountOwner
impl RefUnwindSafe for AccountOwner
impl Send for AccountOwner
impl Sync for AccountOwner
impl Unpin for AccountOwner
impl UnwindSafe for AccountOwner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
Source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32,
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32, ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length bytes from memory from the provided location.
Source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8],
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8], ) -> Result<(), RuntimeError>
Writes the bytes to memory at the provided location.