pub struct GraphResponse {
pub graph: SourceCodeGraph,
pub saved_path: PathBuf,
pub output_path: Option<PathBuf>,
pub from_cache: bool,
}Expand description
Response from a graph build operation.
Fields§
§graph: SourceCodeGraphThe built graph.
saved_path: PathBufPath where the graph was saved.
output_path: Option<PathBuf>Additional output path (if requested).
from_cache: boolWhether the graph was loaded from cache.
Implementations§
Source§impl GraphResponse
impl GraphResponse
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Get node count.
Sourcepub fn edge_count(&self) -> usize
pub fn edge_count(&self) -> usize
Get edge count.
Trait Implementations§
Source§impl Clone for GraphResponse
impl Clone for GraphResponse
Source§fn clone(&self) -> GraphResponse
fn clone(&self) -> GraphResponse
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 GraphResponse
impl Debug for GraphResponse
Source§impl<'de> Deserialize<'de> for GraphResponse
impl<'de> Deserialize<'de> for GraphResponse
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 GraphResponse
impl RefUnwindSafe for GraphResponse
impl Send for GraphResponse
impl Sync for GraphResponse
impl Unpin for GraphResponse
impl UnsafeUnpin for GraphResponse
impl UnwindSafe for GraphResponse
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,
Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
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