pub struct PreAuthTxHash(/* private fields */);Expand description
A pre authorized transaction hash.
Implementations§
Source§impl PreAuthTxHash
impl PreAuthTxHash
Sourcepub fn new(hash: Vec<u8>) -> Result<PreAuthTxHash>
pub fn new(hash: Vec<u8>) -> Result<PreAuthTxHash>
Creates a PreAuthTxHash from the transaction hash.
The hash must be exactly 32 bytes.
Sourcepub fn new_from_transaction_envelope(
tx: &TransactionEnvelope,
network: &Network,
) -> Result<PreAuthTxHash>
pub fn new_from_transaction_envelope( tx: &TransactionEnvelope, network: &Network, ) -> Result<PreAuthTxHash>
Creates a PreAuthTxHash from the transaction envelope.
Trait Implementations§
Source§impl Clone for PreAuthTxHash
impl Clone for PreAuthTxHash
Source§fn clone(&self) -> PreAuthTxHash
fn clone(&self) -> PreAuthTxHash
Returns a duplicate 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 PreAuthTxHash
impl Debug for PreAuthTxHash
Source§impl PartialEq for PreAuthTxHash
impl PartialEq for PreAuthTxHash
impl Eq for PreAuthTxHash
impl StructuralPartialEq for PreAuthTxHash
Auto Trait Implementations§
impl Freeze for PreAuthTxHash
impl RefUnwindSafe for PreAuthTxHash
impl Send for PreAuthTxHash
impl Sync for PreAuthTxHash
impl Unpin for PreAuthTxHash
impl UnwindSafe for PreAuthTxHash
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