[−][src]Struct stellar_base::signature::PreAuthTxHash
A pre authorized transaction hash.
Implementations
impl PreAuthTxHash
[src]
pub fn new(hash: Vec<u8>) -> Result<PreAuthTxHash>
[src]
Creates a PreAuthTxHash
from the transaction hash.
The hash
must be exactly 32 bytes.
pub fn new_from_transaction_envelope(
tx: &TransactionEnvelope,
network: &Network
) -> Result<PreAuthTxHash>
[src]
tx: &TransactionEnvelope,
network: &Network
) -> Result<PreAuthTxHash>
Creates a PreAuthTxHash
from the transaction envelope.
pub fn as_bytes(&self) -> &[u8]
[src]
Returns the pre authorized transaction hash as bytes.
Trait Implementations
impl Clone for PreAuthTxHash
[src]
fn clone(&self) -> PreAuthTxHash
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PreAuthTxHash
[src]
impl Eq for PreAuthTxHash
[src]
impl PartialEq<PreAuthTxHash> for PreAuthTxHash
[src]
fn eq(&self, other: &PreAuthTxHash) -> bool
[src]
fn ne(&self, other: &PreAuthTxHash) -> bool
[src]
impl StructuralEq for PreAuthTxHash
[src]
impl StructuralPartialEq for PreAuthTxHash
[src]
Auto Trait Implementations
impl RefUnwindSafe for PreAuthTxHash
impl Send for PreAuthTxHash
impl Sync for PreAuthTxHash
impl Unpin for PreAuthTxHash
impl UnwindSafe for PreAuthTxHash
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,