pub struct Node {
pub path: String,
pub kind: NodeKind,
pub parent_path: Option<String>,
pub extension: Option<String>,
pub language: Option<String>,
pub size_bytes: Option<u64>,
pub mtime_ns: Option<i64>,
pub content_hash: Option<String>,
}Expand description
Repository node stored in the ProjectAtlas index.
Fields§
§path: StringRepository-relative path using forward slashes.
kind: NodeKindFile or folder kind.
parent_path: Option<String>Parent path using forward slashes.
extension: Option<String>File extension, including the dot.
language: Option<String>Detected language or file family.
size_bytes: Option<u64>File size in bytes.
mtime_ns: Option<i64>File modification timestamp in nanoseconds since Unix epoch.
content_hash: Option<String>BLAKE3 hash for file content.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.