pub struct Protocol {
pub name: String,
pub version: String,
pub namespace: Option<String>,
pub description: Option<String>,
pub channels: Vec<Channel>,
}Expand description
A protocol definition: the top-level grouping of Channels.
Fields§
§name: StringProtocol name (e.g. "ping-pong").
version: StringProtocol version string (e.g. "2.0.0").
namespace: Option<String>Optional namespace, used by emitters for module / package placement.
description: Option<String>Optional human-readable description.
channels: Vec<Channel>Channels in source order.
Trait Implementations§
impl Eq for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
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