Enum soroban_env_guest::xdr::HashIdPreimage
pub enum HashIdPreimage {
OpId(HashIdPreimageOperationId),
PoolRevokeOpId(HashIdPreimageRevokeId),
ContractId(HashIdPreimageContractId),
SorobanAuthorization(HashIdPreimageSorobanAuthorization),
}
Expand description
HashIdPreimage is an XDR Union defines as:
union HashIDPreimage switch (EnvelopeType type)
{
case ENVELOPE_TYPE_OP_ID:
struct
{
AccountID sourceAccount;
SequenceNumber seqNum;
uint32 opNum;
} operationID;
case ENVELOPE_TYPE_POOL_REVOKE_OP_ID:
struct
{
AccountID sourceAccount;
SequenceNumber seqNum;
uint32 opNum;
PoolID liquidityPoolID;
Asset asset;
} revokeID;
case ENVELOPE_TYPE_CONTRACT_ID:
struct
{
Hash networkID;
ContractIDPreimage contractIDPreimage;
} contractID;
case ENVELOPE_TYPE_SOROBAN_AUTHORIZATION:
struct
{
Hash networkID;
int64 nonce;
uint32 signatureExpirationLedger;
SorobanAuthorizedInvocation invocation;
} sorobanAuthorization;
};
Variants§
OpId(HashIdPreimageOperationId)
PoolRevokeOpId(HashIdPreimageRevokeId)
ContractId(HashIdPreimageContractId)
SorobanAuthorization(HashIdPreimageSorobanAuthorization)
Implementations§
§impl HashIdPreimage
impl HashIdPreimage
pub const VARIANTS: [EnvelopeType; 4] = _
pub const VARIANTS_STR: [&'static str; 4] = _
pub const fn name(&self) -> &'static str
pub const fn discriminant(&self) -> EnvelopeType
pub const fn variants() -> [EnvelopeType; 4]
Trait Implementations§
§impl<'arbitrary> Arbitrary<'arbitrary> for HashIdPreimage
impl<'arbitrary> Arbitrary<'arbitrary> for HashIdPreimage
§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<HashIdPreimage, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<HashIdPreimage, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>
) -> Result<HashIdPreimage, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary> ) -> Result<HashIdPreimage, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read more§impl Clone for HashIdPreimage
impl Clone for HashIdPreimage
§fn clone(&self) -> HashIdPreimage
fn clone(&self) -> HashIdPreimage
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 HashIdPreimage
impl Debug for HashIdPreimage
§impl Discriminant<EnvelopeType> for HashIdPreimage
impl Discriminant<EnvelopeType> for HashIdPreimage
fn discriminant(&self) -> EnvelopeType
§impl Hash for HashIdPreimage
impl Hash for HashIdPreimage
§impl Ord for HashIdPreimage
impl Ord for HashIdPreimage
§impl PartialEq for HashIdPreimage
impl PartialEq for HashIdPreimage
§fn eq(&self, other: &HashIdPreimage) -> bool
fn eq(&self, other: &HashIdPreimage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for HashIdPreimage
impl PartialOrd for HashIdPreimage
§fn partial_cmp(&self, other: &HashIdPreimage) -> Option<Ordering>
fn partial_cmp(&self, other: &HashIdPreimage) -> 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§impl ReadXdr for HashIdPreimage
impl ReadXdr for HashIdPreimage
§fn read_xdr<R>(r: &mut Limited<R>) -> Result<HashIdPreimage, Error>where
R: Read,
fn read_xdr<R>(r: &mut Limited<R>) -> Result<HashIdPreimage, Error>where
R: Read,
Read the XDR and construct the type. Read more
§fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
fn read_xdr_to_end<R>(r: &mut Limited<R>) -> Result<Self, Error>where
R: Read,
Read the XDR and construct the type, and consider it an error if the
read does not completely consume the read implementation. Read more
§fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR and construct the type. Read more
§fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
fn read_xdr_into_to_end<R>(&mut self, r: &mut Limited<R>) -> Result<(), Error>where
R: Read,
Read the XDR into the existing value, and consider it an error if the
read does not completely consume the read implementation. Read more
§fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
fn read_xdr_iter<R>(r: &mut Limited<R>) -> ReadXdrIter<&mut R, Self> ⓘwhere
R: Read,
Create an iterator that reads the read implementation as a stream of
values that are read into the implementing type. Read more
§impl Variants<EnvelopeType> for HashIdPreimage
impl Variants<EnvelopeType> for HashIdPreimage
fn variants() -> Iter<'static, EnvelopeType>
§impl WriteXdr for HashIdPreimage
impl WriteXdr for HashIdPreimage
impl Eq for HashIdPreimage
impl StructuralEq for HashIdPreimage
impl StructuralPartialEq for HashIdPreimage
impl Union<EnvelopeType> for HashIdPreimage
Auto Trait Implementations§
impl RefUnwindSafe for HashIdPreimage
impl Send for HashIdPreimage
impl Sync for HashIdPreimage
impl Unpin for HashIdPreimage
impl UnwindSafe for HashIdPreimage
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