pub struct Snapshot {Show 13 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>,
}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.
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>, ) -> 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> 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