pub struct AdvertisementToken {
pub host: String,
pub txid: String,
pub output_index: u32,
pub locking_script: String,
pub beef: Vec<u8>,
}Expand description
An advertisement token recovered from an overlay lookup.
Represents a single UTXO that encodes a MessageBox host advertisement via PushDrop: fields[0] = identity key bytes, fields[1] = host URL bytes.
Fields§
§host: StringThe host URL encoded in the advertisement.
txid: StringTransaction ID of the advertising UTXO.
output_index: u32Output index within the advertising transaction.
locking_script: StringHex-encoded locking script of the advertising output.
beef: Vec<u8>Raw BEEF bytes for the advertising transaction (needed for revocation).
Trait Implementations§
Source§impl Clone for AdvertisementToken
impl Clone for AdvertisementToken
Source§fn clone(&self) -> AdvertisementToken
fn clone(&self) -> AdvertisementToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AdvertisementToken
impl RefUnwindSafe for AdvertisementToken
impl Send for AdvertisementToken
impl Sync for AdvertisementToken
impl Unpin for AdvertisementToken
impl UnsafeUnpin for AdvertisementToken
impl UnwindSafe for AdvertisementToken
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