pub struct VtxoFeeInfo {
pub amount: Amount,
pub expiry_blocks: u32,
}Expand description
A very basic struct to hold information for use in calculating the fees of transactions.
Fields§
§amount: AmountThe total amount of the VTXO.
expiry_blocks: u32Number of blocks until expiry.
Implementations§
Source§impl VtxoFeeInfo
impl VtxoFeeInfo
Sourcepub fn from_vtxo_and_tip<G>(vtxo: &Vtxo<G>, tip: BlockHeight) -> Self
pub fn from_vtxo_and_tip<G>(vtxo: &Vtxo<G>, tip: BlockHeight) -> Self
Constructs a VtxoFeeInfo instance from the given Vtxo and tip BlockHeight
Trait Implementations§
Source§impl Clone for VtxoFeeInfo
impl Clone for VtxoFeeInfo
Source§fn clone(&self) -> VtxoFeeInfo
fn clone(&self) -> VtxoFeeInfo
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 VtxoFeeInfo
impl Debug for VtxoFeeInfo
Source§impl<'de> Deserialize<'de> for VtxoFeeInfo
impl<'de> Deserialize<'de> for VtxoFeeInfo
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 Hash for VtxoFeeInfo
impl Hash for VtxoFeeInfo
Source§impl PartialEq for VtxoFeeInfo
impl PartialEq for VtxoFeeInfo
Source§impl Serialize for VtxoFeeInfo
impl Serialize for VtxoFeeInfo
impl Copy for VtxoFeeInfo
impl Eq for VtxoFeeInfo
impl StructuralPartialEq for VtxoFeeInfo
Auto Trait Implementations§
impl Freeze for VtxoFeeInfo
impl RefUnwindSafe for VtxoFeeInfo
impl Send for VtxoFeeInfo
impl Sync for VtxoFeeInfo
impl Unpin for VtxoFeeInfo
impl UnsafeUnpin for VtxoFeeInfo
impl UnwindSafe for VtxoFeeInfo
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