pub struct Snapshot {Show 14 fields
pub schema_version: String,
pub generated_at: DateTime<Utc>,
pub command: String,
pub workspace: String,
pub target: String,
pub plugin: String,
pub config_file: Option<String>,
pub versions: BTreeMap<String, String>,
pub roots: BTreeMap<String, String>,
pub git: Option<GitInfo>,
pub timings: Vec<StageTime>,
pub graphs: BTreeMap<String, LevelGraph>,
pub presets: Vec<Preset>,
pub prompt: PromptTemplate,
}Fields§
§schema_version: String§generated_at: DateTime<Utc>§command: String§workspace: StringDirectory from which code-ranker was invoked.
target: StringThe analyzed project directory (absolute path, stored once here).
plugin: String§config_file: Option<String>Config file used for this analysis, if any was found.
versions: BTreeMap<String, String>§roots: BTreeMap<String, String>Named system roots used to shorten node paths (e.g. {registry}).
git: Option<GitInfo>§timings: Vec<StageTime>§graphs: BTreeMap<String, LevelGraph>Analysis levels, keyed by level name. Today only "files" is produced.
presets: Vec<Preset>Prompt-Generator presets (refactoring principles), language-adapted.
prompt: PromptTemplatePrompt-Generator scaffolding prose (language-neutral framing), so the CLI
prompt format and the HTML viewer render the same text from one source.
Implementations§
Source§impl Snapshot
impl Snapshot
pub fn new( command: String, workspace: String, target: String, plugin: String, config_file: Option<String>, versions: BTreeMap<String, String>, roots: BTreeMap<String, String>, git: Option<GitInfo>, timings: Vec<StageTime>, graphs: BTreeMap<String, LevelGraph>, presets: Vec<Preset>, prompt: PromptTemplate, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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 Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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