pub struct ProtocolHello {
pub supported_versions: Vec<String>,
pub preferred_version: String,
pub capabilities: Vec<ProtocolCapability>,
}Expand description
Protocol hello message sent by CLI during registration
Fields§
§supported_versions: Vec<String>Protocol versions supported by this CLI (newest first)
preferred_version: StringPreferred protocol version
capabilities: Vec<ProtocolCapability>Capabilities this CLI supports
Trait Implementations§
Source§impl Clone for ProtocolHello
impl Clone for ProtocolHello
Source§fn clone(&self) -> ProtocolHello
fn clone(&self) -> ProtocolHello
Returns a duplicate 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 ProtocolHello
impl Debug for ProtocolHello
Source§impl Default for ProtocolHello
impl Default for ProtocolHello
Source§impl<'de> Deserialize<'de> for ProtocolHello
impl<'de> Deserialize<'de> for ProtocolHello
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 ProtocolHello
impl RefUnwindSafe for ProtocolHello
impl Send for ProtocolHello
impl Sync for ProtocolHello
impl Unpin for ProtocolHello
impl UnsafeUnpin for ProtocolHello
impl UnwindSafe for ProtocolHello
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