pub struct BuiltTransaction {
pub version: String,
pub era: BuilderEra,
pub status: TransactionStatus,
pub tx_hash: Bytes32,
pub tx_bytes: Bytes,
pub signatures: Option<HashMap<Bytes32, Bytes64>>,
}
Fields§
§version: String
§era: BuilderEra
§status: TransactionStatus
§tx_hash: Bytes32
§tx_bytes: Bytes
§signatures: Option<HashMap<Bytes32, Bytes64>>
Implementations§
Source§impl BuiltTransaction
impl BuiltTransaction
pub fn sign(self, private_key: PrivateKey) -> Result<Self, TxBuilderError>
pub fn add_signature( self, pub_key: PublicKey, signature: [u8; 64], ) -> Result<Self, TxBuilderError>
pub fn remove_signature( self, pub_key: PublicKey, ) -> Result<Self, TxBuilderError>
Trait Implementations§
Source§impl Clone for BuiltTransaction
impl Clone for BuiltTransaction
Source§fn clone(&self) -> BuiltTransaction
fn clone(&self) -> BuiltTransaction
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 BuiltTransaction
impl Debug for BuiltTransaction
Source§impl<'de> Deserialize<'de> for BuiltTransaction
impl<'de> Deserialize<'de> for BuiltTransaction
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 PartialEq for BuiltTransaction
impl PartialEq for BuiltTransaction
Source§impl Serialize for BuiltTransaction
impl Serialize for BuiltTransaction
impl Eq for BuiltTransaction
impl StructuralPartialEq for BuiltTransaction
Auto Trait Implementations§
impl Freeze for BuiltTransaction
impl RefUnwindSafe for BuiltTransaction
impl Send for BuiltTransaction
impl Sync for BuiltTransaction
impl Unpin for BuiltTransaction
impl UnwindSafe for BuiltTransaction
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more