pub struct CaptureArtifact {
pub source_url: String,
pub redacted_html: String,
pub diagnostic: Option<String>,
pub reproduction_command: String,
}Expand description
Sanitized capture artifact ready for local review.
Fields§
§source_url: StringRedacted source URL.
redacted_html: StringRedacted HTML or snapshot source.
diagnostic: Option<String>Redacted local diagnostic context.
reproduction_command: StringDeterministic command that can reproduce this artifact locally.
Implementations§
Source§impl CaptureArtifact
impl CaptureArtifact
Sourcepub fn submission_checklist(&self) -> String
pub fn submission_checklist(&self) -> String
Returns a deterministic fixture submission checklist for this artifact.
Sourcepub fn validate_bundle(&self) -> Result<(), CaptureError>
pub fn validate_bundle(&self) -> Result<(), CaptureError>
Validates that this local-only bundle can be reviewed safely.
Sourcepub fn from_text(input: &str) -> Result<Self, CaptureError>
pub fn from_text(input: &str) -> Result<Self, CaptureError>
Parses a serialized capture artifact.
Trait Implementations§
Source§impl Clone for CaptureArtifact
impl Clone for CaptureArtifact
Source§fn clone(&self) -> CaptureArtifact
fn clone(&self) -> CaptureArtifact
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 CaptureArtifact
impl Debug for CaptureArtifact
Source§impl PartialEq for CaptureArtifact
impl PartialEq for CaptureArtifact
Source§fn eq(&self, other: &CaptureArtifact) -> bool
fn eq(&self, other: &CaptureArtifact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CaptureArtifact
impl StructuralPartialEq for CaptureArtifact
Auto Trait Implementations§
impl Freeze for CaptureArtifact
impl RefUnwindSafe for CaptureArtifact
impl Send for CaptureArtifact
impl Sync for CaptureArtifact
impl Unpin for CaptureArtifact
impl UnsafeUnpin for CaptureArtifact
impl UnwindSafe for CaptureArtifact
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