pub struct TransactionId(/* private fields */);
Expand description
Transaction ID
Implementations§
Source§impl TransactionId
impl TransactionId
Sourcepub fn new(ys: Vec<PublicKey>) -> Self
pub fn new(ys: Vec<PublicKey>) -> Self
Create new TransactionId
Sourcepub fn from_proofs(proofs: Proofs) -> Result<Self, Error>
pub fn from_proofs(proofs: Proofs) -> Result<Self, Error>
From proofs
Sourcepub fn from_bytes(bytes: [u8; 32]) -> Self
pub fn from_bytes(bytes: [u8; 32]) -> Self
From bytes
Sourcepub fn from_slice(slice: &[u8]) -> Result<Self, Error>
pub fn from_slice(slice: &[u8]) -> Result<Self, Error>
From slice
Trait Implementations§
Source§impl Clone for TransactionId
impl Clone for TransactionId
Source§fn clone(&self) -> TransactionId
fn clone(&self) -> TransactionId
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 TransactionId
impl Debug for TransactionId
Source§impl<'de> Deserialize<'de> for TransactionId
impl<'de> Deserialize<'de> for TransactionId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TransactionId
impl Display for TransactionId
Source§impl FromStr for TransactionId
impl FromStr for TransactionId
Source§impl Ord for TransactionId
impl Ord for TransactionId
Source§fn cmp(&self, other: &TransactionId) -> Ordering
fn cmp(&self, other: &TransactionId) -> 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 TransactionId
impl PartialEq for TransactionId
Source§impl PartialOrd for TransactionId
impl PartialOrd for TransactionId
Source§impl Serialize for TransactionId
impl Serialize for TransactionId
impl Copy for TransactionId
impl Eq for TransactionId
impl StructuralPartialEq for TransactionId
Auto Trait Implementations§
impl Freeze for TransactionId
impl RefUnwindSafe for TransactionId
impl Send for TransactionId
impl Sync for TransactionId
impl Unpin for TransactionId
impl UnwindSafe for TransactionId
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