pub struct Payload {
pub data: Vec<u8>,
pub output_type: BtcOutputType,
}
Fields§
§data: Vec<u8>
§output_type: BtcOutputType
Implementations§
Source§impl Payload
impl Payload
pub fn from_pkscript(pkscript: &[u8]) -> Result<Payload, PayloadError>
Trait Implementations§
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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