pub struct McpFileSpec {
pub path: ResourcePath,
pub defer_tools: bool,
pub optional: bool,
}Fields§
§path: ResourcePath§defer_tools: bool§optional: boolImplementations§
Source§impl McpFileSpec
impl McpFileSpec
pub fn new(path: impl Into<ResourcePath>) -> Self
pub fn defer_tools(self) -> Self
pub fn optional(self) -> Self
Trait Implementations§
Source§impl Clone for McpFileSpec
impl Clone for McpFileSpec
Source§impl Debug for McpFileSpec
impl Debug for McpFileSpec
Source§impl From<McpFileSpec> for McpSourceSpec
impl From<McpFileSpec> for McpSourceSpec
Source§fn from(spec: McpFileSpec) -> Self
fn from(spec: McpFileSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for McpFileSpec
impl PartialEq for McpFileSpec
impl StructuralPartialEq for McpFileSpec
Auto Trait Implementations§
impl Freeze for McpFileSpec
impl RefUnwindSafe for McpFileSpec
impl Send for McpFileSpec
impl Sync for McpFileSpec
impl Unpin for McpFileSpec
impl UnsafeUnpin for McpFileSpec
impl UnwindSafe for McpFileSpec
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