Struct cardano_serialization_lib::Transaction
source · pub struct Transaction { /* private fields */ }
Implementations§
source§impl Transaction
impl Transaction
pub fn from_bytes(bytes: Vec<u8>) -> Result<Transaction, DeserializeError>
source§impl Transaction
impl Transaction
pub fn from_hex(hex_str: &str) -> Result<Transaction, DeserializeError>
source§impl Transaction
impl Transaction
source§impl Transaction
impl Transaction
pub fn body(&self) -> TransactionBody
pub fn witness_set(&self) -> TransactionWitnessSet
pub fn is_valid(&self) -> bool
pub fn auxiliary_data(&self) -> Option<AuxiliaryData>
pub fn set_is_valid(&mut self, valid: bool)
pub fn new( body: &TransactionBody, witness_set: &TransactionWitnessSet, auxiliary_data: Option<AuxiliaryData> ) -> Self
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 Transaction
impl Debug for Transaction
source§impl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
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 Deserialize for Transaction
impl Deserialize for Transaction
fn deserialize<R: BufRead + Seek>( raw: &mut Deserializer<R> ) -> Result<Self, DeserializeError>
source§impl DeserializeEmbeddedGroup for Transaction
impl DeserializeEmbeddedGroup for Transaction
fn deserialize_as_embedded_group<R: BufRead + Seek>( raw: &mut Deserializer<R>, _: Len ) -> Result<Self, DeserializeError>
source§impl JsonSchema for Transaction
impl JsonSchema for Transaction
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<Transaction> for Transaction
impl PartialEq<Transaction> for Transaction
source§fn eq(&self, other: &Transaction) -> bool
fn eq(&self, other: &Transaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.