pub struct MCPService {
pub service_id: String,
pub node_id: PeerId,
pub tools: Vec<String>,
pub capabilities: MCPCapabilities,
pub metadata: MCPServiceMetadata,
pub registered_at: SystemTime,
pub endpoint: MCPEndpoint,
}Expand description
MCP service descriptor for discovery
Fields§
§service_id: StringService identifier
node_id: PeerIdNode providing the service
tools: Vec<String>Available tools
capabilities: MCPCapabilitiesService capabilities
metadata: MCPServiceMetadataService metadata
registered_at: SystemTimeService registration time
endpoint: MCPEndpointService endpoint information
Implementations§
Trait Implementations§
Source§impl Clone for MCPService
impl Clone for MCPService
Source§fn clone(&self) -> MCPService
fn clone(&self) -> MCPService
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 MCPService
impl Debug for MCPService
Source§impl<'de> Deserialize<'de> for MCPService
impl<'de> Deserialize<'de> for MCPService
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 MCPService
impl RefUnwindSafe for MCPService
impl Send for MCPService
impl Sync for MCPService
impl Unpin for MCPService
impl UnwindSafe for MCPService
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