pub struct ServerInfo {
pub name: String,
pub state: ServerState,
pub tools: u32,
pub error: Option<String>,
}Expand description
One of a plugin’s MCP servers.
Fields§
§name: String§state: ServerState§tools: u32Tools it offers (when ready).
error: Option<String>Trait Implementations§
Source§impl Clone for ServerInfo
impl Clone for ServerInfo
Source§impl Debug for ServerInfo
impl Debug for ServerInfo
Source§impl<'de> Deserialize<'de> for ServerInfo
impl<'de> Deserialize<'de> for ServerInfo
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
impl Eq for ServerInfo
Source§impl PartialEq for ServerInfo
impl PartialEq for ServerInfo
Source§impl Serialize for ServerInfo
impl Serialize for ServerInfo
impl StructuralPartialEq for ServerInfo
Auto Trait Implementations§
impl Forget for ServerInfo
impl Freeze for ServerInfo
impl Move for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnsafeUnpin for ServerInfo
impl UnwindSafe for ServerInfo
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