pub struct Reference {
pub oracle: String,
pub generator: String,
pub command: String,
pub model: String,
pub overrides: String,
pub case: String,
pub file: String,
pub sha256: String,
pub values: BTreeMap<String, ReferenceValue>,
}Expand description
An oracle’s answers for one case, with the provenance of the run that produced them.
Fields§
§oracle: StringWhat produced it, as the generator records it (for example rocketpy 1.13.0).
generator: StringThe generator script, relative to the repository root.
command: StringThe command that regenerates it.
model: StringWhat the oracle modeled, in the generator’s words.
overrides: StringWhat the generator overrode to make the comparison like-for-like.
case: StringThe reference’s own case id.
file: StringThe file it was read from, relative to the repository root.
sha256: StringThat file’s SHA-256, so an edited reference shows up in the report itself.
values: BTreeMap<String, ReferenceValue>The values, by metric name.
Implementations§
Source§impl Reference
impl Reference
Sourcepub fn without_provenance(&self) -> Vec<String>
pub fn without_provenance(&self) -> Vec<String>
The metrics that carry no source, which is what Loft lesson L77 refuses: a value without a source is not a reference.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reference
impl<'de> Deserialize<'de> for Reference
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
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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