pub struct NodeMetadata {Show 14 fields
pub visibility: Option<String>,
pub is_async: Option<bool>,
pub is_static: Option<bool>,
pub is_abstract: Option<bool>,
pub is_virtual: Option<bool>,
pub decorators: Option<Vec<String>>,
pub modifiers: Option<Vec<String>>,
pub scope: Option<String>,
pub git_remote: Option<String>,
pub git_branch: Option<String>,
pub git_commit: Option<String>,
pub is_workspace_root: Option<bool>,
pub is_publishable: Option<bool>,
pub manifest_path: Option<String>,
}Expand description
Optional metadata for code entities.
All fields are optional to support graceful degradation across languages.
Fields§
§visibility: Option<String>Visibility: “public”, “private”, “protected”, “internal”
is_async: Option<bool>Async callable (function/method/constructor) - execution modifier
is_static: Option<bool>Static member
is_abstract: Option<bool>Abstract class/method
is_virtual: Option<bool>Virtual method
decorators: Option<Vec<String>>Python decorators or C# attributes
modifiers: Option<Vec<String>>Other language-specific modifiers (e.g., final, sealed, inline)
scope: Option<String>Semantic scope from overlay tags (e.g., “test”, “benchmark”, “example”)
git_remote: Option<String>Git remote URL (e.g., “https://github.com/org/repo.git”)
git_branch: Option<String>Git branch name (e.g., “main”, “feature/xyz”)
git_commit: Option<String>Git commit SHA (e.g., “abc123def456…”)
is_workspace_root: Option<bool>Whether this component is a workspace root (defines workspace members)
is_publishable: Option<bool>Whether this component is publishable to a registry
manifest_path: Option<String>Path to the manifest file relative to repo root (for quick lookup)
Implementations§
Source§impl NodeMetadata
impl NodeMetadata
Sourcepub fn with_git(
self,
remote: Option<String>,
branch: Option<String>,
commit: Option<String>,
) -> Self
pub fn with_git( self, remote: Option<String>, branch: Option<String>, commit: Option<String>, ) -> Self
Create git metadata for a repository container
Sourcepub fn with_component(
self,
is_workspace_root: Option<bool>,
is_publishable: Option<bool>,
manifest_path: Option<String>,
) -> Self
pub fn with_component( self, is_workspace_root: Option<bool>, is_publishable: Option<bool>, manifest_path: Option<String>, ) -> Self
Create component metadata for a component container
§Arguments
is_workspace_root- Whether this component defines workspace membersis_publishable- Whether this component is publishable to a registrymanifest_path- Path to the manifest file relative to repo root
Trait Implementations§
Source§impl Clone for NodeMetadata
impl Clone for NodeMetadata
Source§fn clone(&self) -> NodeMetadata
fn clone(&self) -> NodeMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NodeMetadata
impl Debug for NodeMetadata
Source§impl Default for NodeMetadata
impl Default for NodeMetadata
Source§fn default() -> NodeMetadata
fn default() -> NodeMetadata
Source§impl<'de> Deserialize<'de> for NodeMetadata
impl<'de> Deserialize<'de> for NodeMetadata
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>,
Source§impl PartialEq for NodeMetadata
impl PartialEq for NodeMetadata
Source§impl Serialize for NodeMetadata
impl Serialize for NodeMetadata
impl Eq for NodeMetadata
impl StructuralPartialEq for NodeMetadata
Auto Trait Implementations§
impl Freeze for NodeMetadata
impl RefUnwindSafe for NodeMetadata
impl Send for NodeMetadata
impl Sync for NodeMetadata
impl Unpin for NodeMetadata
impl UnwindSafe for NodeMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more