pub enum Strkey {
PublicKeyEd25519(PublicKey),
PreAuthTx(PreAuthTx),
HashX(HashX),
MuxedAccountEd25519(MuxedAccount),
SignedPayloadEd25519(SignedPayload),
Contract(Contract),
LiquidityPool(LiquidityPool),
ClaimableBalance(ClaimableBalance),
}Expand description
A decoded Stellar strkey of any supported type.
The PrivateKeyEd25519 (S…) variant is intentionally not included;
use ed25519::PrivateKey directly to encode or decode S… strkeys.
Variants§
PublicKeyEd25519(PublicKey)
PreAuthTx(PreAuthTx)
HashX(HashX)
MuxedAccountEd25519(MuxedAccount)
SignedPayloadEd25519(SignedPayload)
Contract(Contract)
LiquidityPool(LiquidityPool)
ClaimableBalance(ClaimableBalance)
Implementations§
Source§impl Strkey
impl Strkey
pub const MAX_ENCODED_LEN: usize
pub fn to_string(&self) -> HeaplessString<{ Self::MAX_ENCODED_LEN }>
pub fn from_string(s: &str) -> Result<Self, DecodeError>
pub fn from_slice(s: &[u8]) -> Result<Self, DecodeError>
Trait Implementations§
impl Eq for Strkey
Source§impl Ord for Strkey
impl Ord for Strkey
1.21.0 (const: unstable) · 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 PartialOrd for Strkey
impl PartialOrd for Strkey
impl StructuralPartialEq for Strkey
Auto Trait Implementations§
impl Freeze for Strkey
impl RefUnwindSafe for Strkey
impl Send for Strkey
impl Sync for Strkey
impl Unpin for Strkey
impl UnsafeUnpin for Strkey
impl UnwindSafe for Strkey
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