pub struct AdvertisementData {
pub protocol: Protocol,
pub topic_or_service_name: String,
}Expand description
Data needed to create a new advertisement.
Fields§
§protocol: ProtocolProtocol type (SHIP or SLAP).
topic_or_service_name: StringTopic or service name to advertise.
Trait Implementations§
Source§impl Clone for AdvertisementData
impl Clone for AdvertisementData
Source§impl Debug for AdvertisementData
impl Debug for AdvertisementData
Source§impl<'de> Deserialize<'de> for AdvertisementData
impl<'de> Deserialize<'de> for AdvertisementData
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 AdvertisementData
impl RefUnwindSafe for AdvertisementData
impl Send for AdvertisementData
impl Sync for AdvertisementData
impl Unpin for AdvertisementData
impl UnsafeUnpin for AdvertisementData
impl UnwindSafe for AdvertisementData
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