pub struct Advertisement {
pub protocol: Protocol,
pub identity_key: String,
pub domain: String,
pub topic_or_service: String,
pub beef: Option<Vec<u8>>,
pub output_index: Option<u32>,
}Expand description
A SHIP or SLAP overlay advertisement.
Represents a service node’s announcement that it hosts a particular topic (SHIP) or provides a particular lookup service (SLAP).
Fields§
§protocol: ProtocolProtocol type (SHIP or SLAP).
identity_key: StringIdentity key of the advertising node (66-char hex compressed pubkey).
domain: StringDomain/URL where the service is hosted.
topic_or_service: StringTopic name (for SHIP, e.g. “tm_mycoin”) or service name (for SLAP, e.g. “ls_myservice”).
beef: Option<Vec<u8>>BEEF transaction containing the advertisement output (optional).
output_index: Option<u32>Output index within the advertisement transaction (optional).
Trait Implementations§
Source§impl Clone for Advertisement
impl Clone for Advertisement
Source§impl Debug for Advertisement
impl Debug for Advertisement
Source§impl<'de> Deserialize<'de> for Advertisement
impl<'de> Deserialize<'de> for Advertisement
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
Auto Trait Implementations§
impl Freeze for Advertisement
impl RefUnwindSafe for Advertisement
impl Send for Advertisement
impl Sync for Advertisement
impl Unpin for Advertisement
impl UnsafeUnpin for Advertisement
impl UnwindSafe for Advertisement
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