pub struct ProtocolLaunchSpec {
pub protocol: String,
pub name: Option<String>,
pub config: Value,
}Expand description
Generic launch request used by runtime sessions and the CLI.
Fields§
§protocol: StringStable protocol key matching a registered descriptor.
name: Option<String>Optional service name override.
config: ValueProtocol-specific configuration payload.
Implementations§
Source§impl ProtocolLaunchSpec
impl ProtocolLaunchSpec
Sourcepub fn service_name(&self, descriptor: &ProtocolDescriptor) -> String
pub fn service_name(&self, descriptor: &ProtocolDescriptor) -> String
Returns the runtime service name using the descriptor as fallback.
Trait Implementations§
Source§impl Clone for ProtocolLaunchSpec
impl Clone for ProtocolLaunchSpec
Source§fn clone(&self) -> ProtocolLaunchSpec
fn clone(&self) -> ProtocolLaunchSpec
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 ProtocolLaunchSpec
impl Debug for ProtocolLaunchSpec
Source§impl<'de> Deserialize<'de> for ProtocolLaunchSpec
impl<'de> Deserialize<'de> for ProtocolLaunchSpec
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 PartialEq for ProtocolLaunchSpec
impl PartialEq for ProtocolLaunchSpec
Source§impl Serialize for ProtocolLaunchSpec
impl Serialize for ProtocolLaunchSpec
impl StructuralPartialEq for ProtocolLaunchSpec
Auto Trait Implementations§
impl Freeze for ProtocolLaunchSpec
impl RefUnwindSafe for ProtocolLaunchSpec
impl Send for ProtocolLaunchSpec
impl Sync for ProtocolLaunchSpec
impl Unpin for ProtocolLaunchSpec
impl UnsafeUnpin for ProtocolLaunchSpec
impl UnwindSafe for ProtocolLaunchSpec
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