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§fn eq(&self, other: &SignedPayload) -> bool
fn eq(&self, other: &SignedPayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SignedPayload
impl PartialOrd for SignedPayload
source§fn partial_cmp(&self, other: &SignedPayload) -> Option<Ordering>
fn partial_cmp(&self, other: &SignedPayload) -> 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 moreimpl Eq for SignedPayload
impl StructuralEq for SignedPayload
impl StructuralPartialEq for SignedPayload
Auto Trait Implementations§
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