pub(super) struct Model {
pub reference: String,
pub directory: PathBuf,
pub precisions: Vec<u8>,
pub source_directory: Option<PathBuf>,
}Expand description
Pinned index entry and its currently selected prepared artifact.
Fields§
§reference: String§directory: PathBuf§precisions: Vec<u8>§source_directory: Option<PathBuf>Original local checkpoint, used to recognize reports made before the index.
Implementations§
Source§impl Model
impl Model
Sourcepub(super) fn inspect(
binary: &Path,
selector: &OsStr,
root: Option<&Path>,
) -> Result<Self>
pub(super) fn inspect( binary: &Path, selector: &OsStr, root: Option<&Path>, ) -> Result<Self>
Use the same resolver as inference; preparation and inspection are untimed.
Sourcefn from_inspection(value: &Value) -> Result<Self>
fn from_inspection(value: &Value) -> Result<Self>
Extract the index identity and prepared location from the public inspection view.
Sourcepub(super) fn migrate_signature(&self, signature: &mut Value)
pub(super) fn migrate_signature(&self, signature: &mut Value)
Upgrade a proven source identity without exposing its path in shared reports.
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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