#[non_exhaustive]pub enum OutputRetention {
SummaryOnly {
stdout_limit: usize,
stderr_limit: usize,
},
Artifact {
stdout_limit: usize,
stderr_limit: usize,
full_output_path: PathBuf,
},
}Expand description
Bounded output retention policy for a command record.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SummaryOnly
Retain only bounded stdout and stderr summaries.
Fields
Artifact
Retain summaries and point to a local full-output artifact.
Implementations§
Source§impl OutputRetention
impl OutputRetention
Sourcepub const fn summary_only(stdout_limit: usize, stderr_limit: usize) -> Self
pub const fn summary_only(stdout_limit: usize, stderr_limit: usize) -> Self
Creates a summary-only retention policy.
Trait Implementations§
Source§impl Clone for OutputRetention
impl Clone for OutputRetention
Source§fn clone(&self) -> OutputRetention
fn clone(&self) -> OutputRetention
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 OutputRetention
impl Debug for OutputRetention
impl Eq for OutputRetention
Source§impl PartialEq for OutputRetention
impl PartialEq for OutputRetention
Source§fn eq(&self, other: &OutputRetention) -> bool
fn eq(&self, other: &OutputRetention) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutputRetention
Auto Trait Implementations§
impl Freeze for OutputRetention
impl RefUnwindSafe for OutputRetention
impl Send for OutputRetention
impl Sync for OutputRetention
impl Unpin for OutputRetention
impl UnsafeUnpin for OutputRetention
impl UnwindSafe for OutputRetention
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