pub struct PeerService {
pub service: String,
pub domain: String,
pub name: String,
}
Fields§
§service: String
§domain: String
§name: String
Implementations§
Source§impl PeerService
impl PeerService
pub fn serialize_services(services: &Vec<PeerService>) -> Vec<u8> ⓘ
pub fn deserialize_services(buffer: Vec<u8>) -> Result<Vec<PeerService>, Error>
Trait Implementations§
Source§impl Clone for PeerService
impl Clone for PeerService
Source§fn clone(&self) -> PeerService
fn clone(&self) -> PeerService
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 PeerService
impl Debug for PeerService
Source§impl<'de> Deserialize<'de> for PeerService
impl<'de> Deserialize<'de> for PeerService
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 Into<String> for PeerService
impl Into<String> for PeerService
Source§impl Serialize for PeerService
impl Serialize for PeerService
Auto Trait Implementations§
impl Freeze for PeerService
impl RefUnwindSafe for PeerService
impl Send for PeerService
impl Sync for PeerService
impl Unpin for PeerService
impl UnwindSafe for PeerService
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