pub struct LocalDataSource {
pub base_path: PathBuf,
}
Fields§
§base_path: PathBuf
Implementations§
Trait Implementations§
Source§impl MCPDataSource for LocalDataSource
impl MCPDataSource for LocalDataSource
fn load_json<'life0, 'life1, 'async_trait>(
&'life0 self,
relative_path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_manifest<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MCPManifest>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for LocalDataSource
impl RefUnwindSafe for LocalDataSource
impl Send for LocalDataSource
impl Sync for LocalDataSource
impl Unpin for LocalDataSource
impl UnwindSafe for LocalDataSource
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