pub struct OutputDef {
pub amount: u64,
pub script_pubkey: Vec<u8>,
pub address: Option<String>,
}Expand description
A transaction output.
Fields§
§amount: u64Amount in satoshis
script_pubkey: Vec<u8>Script pubkey
address: Option<String>Address (for display)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OutputDef
impl<'de> Deserialize<'de> for OutputDef
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
impl Eq for OutputDef
impl StructuralPartialEq for OutputDef
Auto Trait Implementations§
impl Freeze for OutputDef
impl RefUnwindSafe for OutputDef
impl Send for OutputDef
impl Sync for OutputDef
impl Unpin for OutputDef
impl UnwindSafe for OutputDef
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