pub struct ContentResolutionError {
pub kind: ContentResolutionErrorKind,
pub content_ref: Box<ContentRef>,
pub policy_refs: Vec<PolicyRef>,
pub redacted_summary: String,
}Expand description
Carries the content resolution error record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§kind: ContentResolutionErrorKindKind/category for this record, capability, event, or detected resource.
content_ref: Box<ContentRef>Content reference where payload bytes or structured tool output are stored.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
redacted_summary: StringRedacted human-readable summary safe for events, telemetry, and logs.
Implementations§
Source§impl ContentResolutionError
impl ContentResolutionError
Sourcepub fn to_agent_error(&self) -> AgentError
pub fn to_agent_error(&self) -> AgentError
Converts this value into agent error data. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Trait Implementations§
Source§impl Clone for ContentResolutionError
impl Clone for ContentResolutionError
Source§fn clone(&self) -> ContentResolutionError
fn clone(&self) -> ContentResolutionError
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 ContentResolutionError
impl Debug for ContentResolutionError
Source§impl<'de> Deserialize<'de> for ContentResolutionError
impl<'de> Deserialize<'de> for ContentResolutionError
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
Source§impl Display for ContentResolutionError
impl Display for ContentResolutionError
Source§impl Error for ContentResolutionError
impl Error for ContentResolutionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ContentResolutionError
impl PartialEq for ContentResolutionError
Source§fn eq(&self, other: &ContentResolutionError) -> bool
fn eq(&self, other: &ContentResolutionError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContentResolutionError
impl Serialize for ContentResolutionError
impl Eq for ContentResolutionError
impl StructuralPartialEq for ContentResolutionError
Auto Trait Implementations§
impl Freeze for ContentResolutionError
impl RefUnwindSafe for ContentResolutionError
impl Send for ContentResolutionError
impl Sync for ContentResolutionError
impl Unpin for ContentResolutionError
impl UnsafeUnpin for ContentResolutionError
impl UnwindSafe for ContentResolutionError
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