pub struct ServiceAnnouncement {
pub title: String,
pub body: String,
pub date: i32,
}
Fields§
§title: String
§body: String
§date: i32
Trait Implementations§
Source§impl Clone for ServiceAnnouncement
impl Clone for ServiceAnnouncement
Source§fn clone(&self) -> ServiceAnnouncement
fn clone(&self) -> ServiceAnnouncement
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServiceAnnouncement
impl Debug for ServiceAnnouncement
Source§impl Default for ServiceAnnouncement
impl Default for ServiceAnnouncement
Source§fn default() -> ServiceAnnouncement
fn default() -> ServiceAnnouncement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceAnnouncement
impl<'de> Deserialize<'de> for ServiceAnnouncement
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
Source§impl<'a> MessageRead<'a> for ServiceAnnouncement
impl<'a> MessageRead<'a> for ServiceAnnouncement
Source§fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of
Self
by reading from the given bytes
via the given reader. Read moreSource§impl MessageWrite for ServiceAnnouncement
impl MessageWrite for ServiceAnnouncement
Source§impl PartialEq for ServiceAnnouncement
impl PartialEq for ServiceAnnouncement
Source§impl Serialize for ServiceAnnouncement
impl Serialize for ServiceAnnouncement
impl StructuralPartialEq for ServiceAnnouncement
Auto Trait Implementations§
impl Freeze for ServiceAnnouncement
impl RefUnwindSafe for ServiceAnnouncement
impl Send for ServiceAnnouncement
impl Sync for ServiceAnnouncement
impl Unpin for ServiceAnnouncement
impl UnwindSafe for ServiceAnnouncement
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