pub struct Node {
pub id: Option<i64>,
pub kind: NodeKind,
pub name: String,
pub file_path: String,
pub line_start: Option<usize>,
pub line_end: Option<usize>,
pub metadata: Option<String>,
}Fields§
§id: Option<i64>§kind: NodeKind§name: String§file_path: String§line_start: Option<usize>§line_end: Option<usize>§metadata: Option<String>Implementations§
Source§impl Node
impl Node
pub fn file(path: &str) -> Self
pub fn symbol(name: &str, file_path: &str, kind: NodeKind) -> Self
pub fn with_lines(self, start: usize, end: usize) -> Self
pub fn with_metadata(self, meta: &str) -> Self
pub fn commit(hash: &str, message: &str) -> Self
pub fn test(path: &str, test_name: &str) -> Self
pub fn knowledge(id: &str, summary: &str) -> Self
pub fn issue(id: &str, title: &str) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Node
impl Move for Node
impl RefUnwindSafe for Node
impl Send for Nodewhere
RawVecInner: Send,
impl Sync for Nodewhere
RawVecInner: Sync,
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Nodewhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
Converts
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> ⓘ
Converts
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