pub enum Artifact {
Body,
RenderedHtml,
Text,
Content,
ContentJson,
Screenshot,
Network,
Console,
Observation,
Storage,
}Expand description
Artifact kinds. Body is the default HTTP-safe artifact; browser-backed
fetches can produce the richer DOM/network artifacts. 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
Content
ContentJson
Screenshot
Network
Console
Observation
Storage
localStorage + sessionStorage + IndexedDB names. Default off.
Implementations§
Source§impl Artifact
impl Artifact
Sourcepub const HTTP_DEFAULT: [Self; 1]
pub const HTTP_DEFAULT: [Self; 1]
The artifact set used before browser escalation is known.
Sourcepub const BROWSER_DEFAULT: [Self; 9]
pub const BROWSER_DEFAULT: [Self; 9]
The default artifacts captured once a browser render is actually used.
Storage is intentionally excluded — sensitive data risk means agents
must opt in with --want storage.
Sourcepub const ALL: [Self; 9] = Self::BROWSER_DEFAULT
pub const ALL: [Self; 9] = Self::BROWSER_DEFAULT
All non-sensitive artifacts. Kept as a stable SDK convenience alias.
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>,
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,
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
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
key and return true if they are equal.