pub struct HistoryEntryView {Show 13 fields
pub id: String,
pub kind: String,
pub subject: String,
pub verdict: String,
pub recorded_at: String,
pub stale: Option<bool>,
pub agent: Option<String>,
pub origin: Option<String>,
pub trials: Option<u32>,
pub attachments: u32,
pub code_commit: String,
pub ruleset_hash: String,
pub stale_reason: String,
}Expand description
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Fields§
§id: String§kind: String§subject: String§verdict: String§recorded_at: String§stale: Option<bool>True when the data this was produced from no longer matches disk, or
the ruleset it ran has changed since. None when the data it
referenced can no longer be found at all.
agent: Option<String>The agent that ran it, or None for a person. default for a view
built before agents could run research.
origin: Option<String>Where the agent’s code asked for it, as path:line, when it said.
trials: Option<u32>The size of the search an agent’s finding was held to.
attachments: u32How many files are kept with it (#157).
code_commit: StringWhat produced it (#189): the engine build, and for a ruleset the document’s hash at run time. Two findings from different versions of one ruleset are told apart by this.
ruleset_hash: String§stale_reason: StringWhy stale is set: data, ruleset, or data and ruleset. Empty
when fresh, and when the data is gone altogether.
Implementations§
Source§impl HistoryEntryView
impl HistoryEntryView
Sourcepub fn stale(&self) -> bool
pub fn stale(&self) -> bool
Returns the value of stale, or the default value if stale is unset.
Sourcepub fn agent(&self) -> &str
pub fn agent(&self) -> &str
Returns the value of agent, or the default value if agent is unset.
Trait Implementations§
Source§impl Clone for HistoryEntryView
impl Clone for HistoryEntryView
Source§impl Debug for HistoryEntryView
impl Debug for HistoryEntryView
Source§impl Default for HistoryEntryView
impl Default for HistoryEntryView
Source§impl<'de> Deserialize<'de> for HistoryEntryView
impl<'de> Deserialize<'de> for HistoryEntryView
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>,
impl Eq for HistoryEntryView
Source§impl Hash for HistoryEntryView
impl Hash for HistoryEntryView
Source§impl Message for HistoryEntryView
impl Message for HistoryEntryView
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.