pub struct PluginRoots {
pub project: Option<PathBuf>,
pub user: Option<PathBuf>,
pub managed: Option<PathBuf>,
}Expand description
Discovery roots, in priority order (project beats user beats managed).
Fields§
§project: Option<PathBuf><workspace>/.caliban/plugins/
user: Option<PathBuf>$XDG_DATA_HOME/caliban/plugins/
managed: Option<PathBuf>/etc/caliban/plugins/ (Linux), /Library/Application Support/Caliban/plugins/ (macOS).
Implementations§
Source§impl PluginRoots
impl PluginRoots
Sourcepub fn default_for(workspace_root: &Path) -> Self
pub fn default_for(workspace_root: &Path) -> Self
Default roots derived from the workspace + XDG dirs + OS-specific managed location.
Sourcepub fn ordered(&self) -> Vec<(PathBuf, PluginSource)>
pub fn ordered(&self) -> Vec<(PathBuf, PluginSource)>
Iterate over (root, source) pairs in priority order.
Trait Implementations§
Source§impl Clone for PluginRoots
impl Clone for PluginRoots
Source§fn clone(&self) -> PluginRoots
fn clone(&self) -> PluginRoots
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PluginRoots
impl RefUnwindSafe for PluginRoots
impl Send for PluginRoots
impl Sync for PluginRoots
impl Unpin for PluginRoots
impl UnsafeUnpin for PluginRoots
impl UnwindSafe for PluginRoots
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