Struct cardano_serialization_lib::Transaction
source · [−]pub struct Transaction { /* private fields */ }
Implementations
sourceimpl Transaction
impl Transaction
pub fn from_bytes(bytes: Vec<u8>) -> Result<Transaction, DeserializeError>
sourceimpl Transaction
impl Transaction
sourceimpl Transaction
impl Transaction
pub fn from_hex(hex_str: &str) -> Result<Transaction, DeserializeError>
sourceimpl Transaction
impl Transaction
sourceimpl 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
sourceimpl Clone for Transaction
impl Clone for Transaction
sourcefn clone(&self) -> Transaction
fn clone(&self) -> Transaction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de> Deserialize<'de> for Transaction
impl<'de> Deserialize<'de> for Transaction
sourcefn 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
sourceimpl Deserialize for Transaction
impl Deserialize for Transaction
fn deserialize<R: BufRead + Seek>(
raw: &mut Deserializer<R>
) -> Result<Self, DeserializeError>
sourceimpl DeserializeEmbeddedGroup for Transaction
impl DeserializeEmbeddedGroup for Transaction
fn deserialize_as_embedded_group<R: BufRead + Seek>(
raw: &mut Deserializer<R>,
_: Len
) -> Result<Self, DeserializeError>
sourceimpl JsonSchema for Transaction
impl JsonSchema for Transaction
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 more
sourceimpl Serialize for Transaction
impl Serialize for Transaction
fn serialize<'se, W: Write>(
&self,
serializer: &'se mut Serializer<W>
) -> Result<&'se mut Serializer<W>>
sourceimpl Serialize for Transaction
impl Serialize for Transaction
Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more