pub struct ProfileMetadata {
pub profile: ProfileInfo,
pub source: ProfileSource,
pub plugin: PluginConfig,
pub categories: Option<CategoriesConfig>,
}Expand description
.dot-agent.toml structure (per-profile metadata)
Fields§
§profile: ProfileInfoProfile section
source: ProfileSourceSource information
plugin: PluginConfigPlugin configuration
categories: Option<CategoriesConfig>Category configurations (overrides builtin categories)
Implementations§
Source§impl ProfileMetadata
impl ProfileMetadata
Sourcepub fn new_git(
name: &str,
url: &str,
branch: Option<&str>,
commit: Option<&str>,
path: Option<&str>,
) -> Self
pub fn new_git( name: &str, url: &str, branch: Option<&str>, commit: Option<&str>, path: Option<&str>, ) -> Self
Create new git profile metadata
Sourcepub fn new_marketplace(
name: &str,
channel: &str,
plugin: &str,
version: &str,
) -> Self
pub fn new_marketplace( name: &str, channel: &str, plugin: &str, version: &str, ) -> Self
Create new marketplace profile metadata
Sourcepub fn has_plugin_features(profile_dir: &Path) -> bool
pub fn has_plugin_features(profile_dir: &Path) -> bool
Check if profile has plugin features (hooks, MCP, LSP)
Trait Implementations§
Source§impl Clone for ProfileMetadata
impl Clone for ProfileMetadata
Source§fn clone(&self) -> ProfileMetadata
fn clone(&self) -> ProfileMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileMetadata
impl Debug for ProfileMetadata
Source§impl<'de> Deserialize<'de> for ProfileMetadata
impl<'de> Deserialize<'de> for ProfileMetadata
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
Auto Trait Implementations§
impl Freeze for ProfileMetadata
impl RefUnwindSafe for ProfileMetadata
impl Send for ProfileMetadata
impl Sync for ProfileMetadata
impl Unpin for ProfileMetadata
impl UnwindSafe for ProfileMetadata
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