pub struct SanitizedContent {
pub id: String,
pub url: String,
pub fetched_at: DateTime<Utc>,
pub sanitized_text: String,
pub removed_patterns: Vec<String>,
pub log_path: PathBuf,
}Expand description
One sanitize call’s full result payload.
Fields§
§id: StringUUID v4 string assigned at sanitize time.
url: StringURL that was fetched, echoed back into the audit row and the
<untrusted_content src=...> attribute.
fetched_at: DateTime<Utc>UTC timestamp of when the fetch started.
sanitized_text: StringThe wrapped <untrusted_content>...</untrusted_content> envelope
text, ready to hand to the caller LLM.
removed_patterns: Vec<String>All pattern labels stripped from the body across both sanitize layers.
log_path: PathBufAudit-row path under <home>/web_log/.
Trait Implementations§
Source§impl Clone for SanitizedContent
impl Clone for SanitizedContent
Source§fn clone(&self) -> SanitizedContent
fn clone(&self) -> SanitizedContent
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 SanitizedContent
impl Debug for SanitizedContent
Source§impl<'de> Deserialize<'de> for SanitizedContent
impl<'de> Deserialize<'de> for SanitizedContent
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
Auto Trait Implementations§
impl Freeze for SanitizedContent
impl RefUnwindSafe for SanitizedContent
impl Send for SanitizedContent
impl Sync for SanitizedContent
impl Unpin for SanitizedContent
impl UnsafeUnpin for SanitizedContent
impl UnwindSafe for SanitizedContent
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more