Struct stellar_strkey::ed25519::SignedPayload
source · pub struct SignedPayload {
pub ed25519: [u8; 32],
pub payload: Vec<u8>,
}
Expand description
Stores a signed payload ed25519 signer.
The payload must not have a size larger than u32::MAX.
Fields§
§ed25519: [u8; 32]
§payload: Vec<u8>
Implementations§
source§impl SignedPayload
impl SignedPayload
sourcepub fn to_string(&self) -> String
pub fn to_string(&self) -> String
Returns the strkey string for the signed payload signer.
§Panics
When the payload is larger than u32::MAX.
pub fn from_payload(payload: &[u8]) -> Result<Self, DecodeError>
pub fn from_string(s: &str) -> Result<Self, DecodeError>
Trait Implementations§
source§impl Clone for SignedPayload
impl Clone for SignedPayload
source§fn clone(&self) -> SignedPayload
fn clone(&self) -> SignedPayload
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 moresource§impl Debug for SignedPayload
impl Debug for SignedPayload
source§impl Display for SignedPayload
impl Display for SignedPayload
source§impl FromStr for SignedPayload
impl FromStr for SignedPayload
source§impl Hash for SignedPayload
impl Hash for SignedPayload
source§impl Ord for SignedPayload
impl Ord for SignedPayload
source§fn cmp(&self, other: &SignedPayload) -> Ordering
fn cmp(&self, other: &SignedPayload) -> 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 PartialEq for SignedPayload
impl PartialEq for SignedPayload
source§impl PartialOrd for SignedPayload
impl PartialOrd for SignedPayload
impl Eq for SignedPayload
impl StructuralPartialEq for SignedPayload
Auto Trait Implementations§
impl Freeze for SignedPayload
impl RefUnwindSafe for SignedPayload
impl Send for SignedPayload
impl Sync for SignedPayload
impl Unpin for SignedPayload
impl UnwindSafe for SignedPayload
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)