pub struct Tool {Show 14 fields
pub name: String,
pub kind: String,
pub source: Option<String>,
pub integrity: Option<String>,
pub tool_schema: Option<String>,
pub permissions: Vec<String>,
pub transport: Option<String>,
pub command: Option<String>,
pub args: Vec<String>,
pub url: Option<String>,
pub env: BTreeMap<String, String>,
pub headers: BTreeMap<String, String>,
pub scope: Option<String>,
pub enabled: Option<bool>,
}Fields§
§name: String§kind: String§source: Option<String>§integrity: Option<String>§tool_schema: Option<String>§permissions: Vec<String>§transport: Option<String>MCP servers: stdio, http, or sse.
command: Option<String>§args: Vec<String>§url: Option<String>§env: BTreeMap<String, String>Environment for the server; secret values are ${HLOCK_SECRET_…} placeholders.
headers: BTreeMap<String, String>§scope: Option<String>user or project: the config scope the server came from.
enabled: Option<bool>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Tool, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Tool, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Tool
impl Serialize for Tool
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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