Struct redgold_schema::structs::TransactionContract
source · pub struct TransactionContract {
pub confirmation: Option<bool>,
pub confirmation_proofs: Vec<Proof>,
pub finalize_window: Option<u64>,
pub lock_period: Option<u64>,
pub network_reversible: Option<bool>,
pub time_lock_window: Option<TimeLockWindow>,
pub options: Vec<KeyValueOption>,
pub pow_proof: Option<PoWProof>,
}Fields§
§confirmation: Option<bool>input gets signed with a proof; output gets signed with a counter-party proof; transaction then should this confirmation thing be on the output or the transaction??? Transaction
confirmation_proofs: Vec<Proof>§finalize_window: Option<u64>How long the network / each node must wait between PENDING and finalization
lock_period: Option<u64>How long the network must wait after FINALIZED to use.
network_reversible: Option<bool>Used to allow network criteria to vote on reversing in event of hacking.
time_lock_window: Option<TimeLockWindow>§options: Vec<KeyValueOption>§pow_proof: Option<PoWProof>Used only for anti-spam limiting at low limits.
Implementations§
source§impl TransactionContract
impl TransactionContract
sourcepub fn confirmation(&self) -> bool
pub fn confirmation(&self) -> bool
Returns the value of confirmation, or the default value if confirmation is unset.
sourcepub fn finalize_window(&self) -> u64
pub fn finalize_window(&self) -> u64
Returns the value of finalize_window, or the default value if finalize_window is unset.
sourcepub fn lock_period(&self) -> u64
pub fn lock_period(&self) -> u64
Returns the value of lock_period, or the default value if lock_period is unset.
sourcepub fn network_reversible(&self) -> bool
pub fn network_reversible(&self) -> bool
Returns the value of network_reversible, or the default value if network_reversible is unset.
Trait Implementations§
source§impl Clone for TransactionContract
impl Clone for TransactionContract
source§fn clone(&self) -> TransactionContract
fn clone(&self) -> TransactionContract
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TransactionContract
impl Debug for TransactionContract
source§impl Default for TransactionContract
impl Default for TransactionContract
source§impl<'de> Deserialize<'de> for TransactionContract
impl<'de> Deserialize<'de> for TransactionContract
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>,
source§impl Hash for TransactionContract
impl Hash for TransactionContract
source§impl Message for TransactionContract
impl Message for TransactionContract
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self.source§impl PartialEq for TransactionContract
impl PartialEq for TransactionContract
source§fn eq(&self, other: &TransactionContract) -> bool
fn eq(&self, other: &TransactionContract) -> bool
self and other values to be equal, and is used
by ==.