pub fn source_path(&self) -> Option<&CapabilityPath> {
        match self {
            ComponentCapability::Storage(_) => None,
            ComponentCapability::Protocol(protocol) => Some(&protocol.source_path),
            ComponentCapability::Directory(directory) => Some(&directory.source_path),
            ComponentCapability::Runner(runner) => Some(&runner.source_path),
            ComponentCapability::Resolver(resolver) => Some(&resolver.source_path),
            ComponentCapability::Service(service) => Some(&service.source_path),
            _ => None,
        }
    }
/// Return the source path of the capability, if one exists.
Return the source path of the capability, if one exists.
Return the source path of the capability if one exists .
pub fn source_path(&self) -> Option<&CapabilityPath> {
        match self {
            ComponentCapability::Storage(_) => None,
            ComponentCapability::Protocol(protocol) => Some(&protocol.source_path),
            ComponentCapability::Directory(directory) => Some(&directory.source_path),
            ComponentCapability::Runner(runner) => Some(&runner.source_path),
            ComponentCapability::Resolver(resolver) => Some(&resolver.source_path),
            ComponentCapability::Service(service) => Some(&service.source_path),
            _ => None,
        }
    }
pub fn source_path ( & self ) -> Option < & CapabilityPath > { match self { ComponentCapability :: Storage ( _ ) => None , ComponentCapability :: Protocol ( protocol ) => Some ( & protocol . source_path ) , ComponentCapability :: Directory ( directory ) => Some ( & directory . source_path ) , ComponentCapability :: Runner ( runner ) => Some ( & runner . source_path ) , ComponentCapability :: Resolver ( resolver ) => Some ( & resolver . source_path ) , ComponentCapability :: Service ( service ) => Some ( & service . source_path ) , _ => None , } }
Return the source path of the capability, if one exists.
Return the source path of the capability if one exists .
&self
&self