pub struct FinalOutputDescriptor {
pub format: Option<String>,
pub stage: String,
pub submitted_at: i64,
pub bytes: usize,
pub truncated: bool,
pub artifacts: Vec<String>,
}Expand description
What a run’s meta.json records about its answer: everything but the bytes.
The content lives beside it in a sidecar file
(FINAL_OUTPUT_FILE). meta.json is
parsed for every run on every lev ps, every /api/runs page, and every
restart scan, so a payload in it is paid for by operations that never wanted
it: a thousand answered runs would mean hundreds of megabytes of JSON per
listing. A descriptor is a couple of hundred bytes and stays that way.
Fields§
§format: Option<String>The format label the answer was produced under, if any.
stage: StringThe stage that produced it.
submitted_at: i64Unix seconds at submission.
bytes: usizeSize of the answer in bytes, so a caller can decide whether to fetch it.
truncated: boolWhether MAX_FINAL_OUTPUT_BYTES cut the answer short.
artifacts: Vec<String>Files the run produced, as workdir-relative paths.
Trait Implementations§
Source§impl Clone for FinalOutputDescriptor
impl Clone for FinalOutputDescriptor
Source§fn clone(&self) -> FinalOutputDescriptor
fn clone(&self) -> FinalOutputDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FinalOutputDescriptor
impl Debug for FinalOutputDescriptor
Source§impl Default for FinalOutputDescriptor
impl Default for FinalOutputDescriptor
Source§fn default() -> FinalOutputDescriptor
fn default() -> FinalOutputDescriptor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FinalOutputDescriptor
impl<'de> Deserialize<'de> for FinalOutputDescriptor
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 Eq for FinalOutputDescriptor
Source§impl PartialEq for FinalOutputDescriptor
impl PartialEq for FinalOutputDescriptor
Source§impl Serialize for FinalOutputDescriptor
impl Serialize for FinalOutputDescriptor
impl StructuralPartialEq for FinalOutputDescriptor
Auto Trait Implementations§
impl Freeze for FinalOutputDescriptor
impl RefUnwindSafe for FinalOutputDescriptor
impl Send for FinalOutputDescriptor
impl Sync for FinalOutputDescriptor
impl Unpin for FinalOutputDescriptor
impl UnsafeUnpin for FinalOutputDescriptor
impl UnwindSafe for FinalOutputDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.