pub enum PeerServiceEndPoint {
Short(PeerServiceEndPointShort),
Long(PeerServiceEndPointLong),
}
Expand description
DID Peer Service supports two formats:
- Short format - uses
a
andr
for accept and routing keys - Long format - uses
accept
androuting_keys
for accept and routing keys
Variants§
Short(PeerServiceEndPointShort)
Long(PeerServiceEndPointLong)
Implementations§
Source§impl PeerServiceEndPoint
impl PeerServiceEndPoint
pub fn to_short(&self) -> PeerServiceEndPointShort
pub fn to_long(&self) -> PeerServiceEndPointLong
Trait Implementations§
Source§impl Debug for PeerServiceEndPoint
impl Debug for PeerServiceEndPoint
Source§impl<'de> Deserialize<'de> for PeerServiceEndPoint
impl<'de> Deserialize<'de> for PeerServiceEndPoint
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 PeerServiceEndPoint
impl RefUnwindSafe for PeerServiceEndPoint
impl Send for PeerServiceEndPoint
impl Sync for PeerServiceEndPoint
impl Unpin for PeerServiceEndPoint
impl UnwindSafe for PeerServiceEndPoint
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