pub enum Artifact {
Body,
RenderedHtml,
Text,
Screenshot,
Network,
Console,
Observation,
Storage,
}Expand description
Artifact kinds. Body is the only one HTTP-only fetches produce;
the others all require a browser. Storage is default-off due to
sensitive-data risk — agents must request it explicitly via --want.
Per-artifact warnings (§8 last ¶) are emitted when a backend lacks
the capability rather than failing the fetch.
Variants§
Body
RenderedHtml
Text
Screenshot
Network
Console
Observation
Storage
localStorage + sessionStorage + IndexedDB names. Default off.
Implementations§
Source§impl Artifact
impl Artifact
Sourcepub const ALL: [Self; 7]
pub const ALL: [Self; 7]
The seven default artifacts captured on every browser fetch.
Storage is intentionally excluded — sensitive data risk means
agents must opt in with --want storage.
Sourcepub const fn filename_template(self) -> &'static str
pub const fn filename_template(self) -> &'static str
Default filename portion (extension chosen from content-type for
Body; fixed for everything else). body.<ext> is filled in at
write time when the response headers are known.
pub const fn as_str(self) -> &'static str
Trait Implementations§
impl Copy for Artifact
Source§impl<'de> Deserialize<'de> for Artifact
impl<'de> Deserialize<'de> for Artifact
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 Artifact
Source§impl Ord for Artifact
impl Ord for Artifact
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Artifact
impl PartialOrd for Artifact
impl StructuralPartialEq for Artifact
Auto Trait Implementations§
impl Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnsafeUnpin for Artifact
impl UnwindSafe for Artifact
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.