pub struct AgentsMd { /* private fields */ }Implementations§
Source§impl AgentsMd
impl AgentsMd
pub fn discover(start_dir: impl Into<PathBuf>) -> Self
pub fn discover_all(start_dir: impl Into<PathBuf>) -> Self
pub fn with_mode(self, mode: AgentsMdMode) -> Self
pub fn with_file_name(self, file_name: impl Into<String>) -> Self
pub fn with_path(self, path: impl Into<PathBuf>) -> Self
pub fn with_search_dir(self, dir: impl Into<PathBuf>) -> Self
pub async fn resolve(&self) -> Result<Option<PathBuf>, ContextError>
pub async fn resolve_all(&self) -> Result<Vec<PathBuf>, ContextError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentsMd
impl RefUnwindSafe for AgentsMd
impl Send for AgentsMd
impl Sync for AgentsMd
impl Unpin for AgentsMd
impl UnsafeUnpin for AgentsMd
impl UnwindSafe for AgentsMd
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