#[non_exhaustive]pub struct McpTool {
pub server_label: String,
pub allowed_callers: Option<Option<Vec<AllowedCaller>>>,
pub allowed_tools: Option<Option<McpAllowedTools>>,
pub authorization: Option<String>,
pub connector_id: Option<ConnectorId>,
pub defer_loading: Option<bool>,
pub headers: Option<Option<BTreeMap<String, String>>>,
pub require_approval: Option<Option<McpApproval>>,
pub server_description: Option<String>,
pub server_url: Option<String>,
pub tunnel_id: Option<String>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.server_label: String§allowed_callers: Option<Option<Vec<AllowedCaller>>>§allowed_tools: Option<Option<McpAllowedTools>>§connector_id: Option<ConnectorId>§defer_loading: Option<bool>§headers: Option<Option<BTreeMap<String, String>>>§require_approval: Option<Option<McpApproval>>§server_description: Option<String>§server_url: Option<String>§tunnel_id: Option<String>§rest: RestImplementations§
Trait Implementations§
Source§impl DeclaredFields for McpTool
impl DeclaredFields for McpTool
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for McpTool
impl<'de> Deserialize<'de> for McpTool
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 McpTool
impl StructuralPartialEq for McpTool
Auto Trait Implementations§
impl Freeze for McpTool
impl RefUnwindSafe for McpTool
impl Send for McpTool
impl Sync for McpTool
impl Unpin for McpTool
impl UnsafeUnpin for McpTool
impl UnwindSafe for McpTool
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