[][src]Struct dubp_documents::documents::transaction::TransactionDocument

pub struct TransactionDocument { /* fields omitted */ }

Wrap a Transaction document.

Must be created by parsing a text document or using a builder.

Methods

impl TransactionDocument[src]

pub fn compute_hash(&mut self) -> Hash[src]

Compute transaction hash

pub fn get_hash_opt(&self) -> Option<Hash>[src]

get transaction hash option

pub fn get_hash(&mut self) -> Hash[src]

Get transaction hash

pub fn get_inputs(&self) -> &[TransactionInput][src]

Get transaction inputs

pub fn get_outputs(&self) -> &[TransactionOutput][src]

Get transaction outputs

pub fn reduce(&mut self)[src]

Lightens the transaction (for example to store it while minimizing the space required)

Trait Implementations

impl CompactTextDocument for TransactionDocument[src]

impl TextDocument for TransactionDocument[src]

type CompactTextDocument_ = TransactionDocument

Type of associated compact document.

fn as_text_without_signature(&self) -> &str[src]

Return document as text without signature.

fn generate_compact_text(&self) -> String[src]

Generate document compact text. the compact format is the one used in the blocks. Read more

impl Document for TransactionDocument[src]

type PublicKey = PubKey

Type of the PublicKey used by the document.

type CurrencyType = str

Data type of the currency code used by the document.

fn verify_signatures(&self) -> VerificationResult[src]

Verify signatures of document content (as text format)

impl IntoSpecializedDocument<DUBPDocument> for TransactionDocument[src]

impl ToStringObject for TransactionDocument[src]

type StringObject = TransactionDocumentStringified

fn to_string_object(&self) -> TransactionDocumentStringified[src]

Transforms an object into a json object

impl Eq for TransactionDocument[src]

impl Clone for TransactionDocument[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<TransactionDocument> for TransactionDocument[src]

impl Debug for TransactionDocument[src]

impl Serialize for TransactionDocument[src]

impl<'de> Deserialize<'de> for TransactionDocument[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToJsonObject for T where
    T: ToStringObject
[src]

fn to_json_string(&self) -> Result<String, Error>[src]

Convert to JSON String

fn to_json_string_pretty(&self) -> Result<String, Error>[src]

Convert to JSON String pretty

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]