pub struct ErrorContext {
pub message: String,
pub policy_refs: Vec<PolicyRef>,
pub source: Option<SourceRef>,
pub destination: Option<DestinationRef>,
pub subject: Option<EntityRef>,
pub privacy: Option<PrivacyClass>,
pub redacted_summary: Option<String>,
}Expand description
Defines the error context SDK value. Construction records local state only; documented runtimes, executors, or ports own side effects.
Fields§
§message: StringMessage used by this record or request.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
source: Option<SourceRef>Source label or ref for this item; it is metadata and does not fetch content by itself.
destination: Option<DestinationRef>Destination label or ref for this item; it is metadata and does not deliver content by itself.
subject: Option<EntityRef>Optional subject value. When absent, callers should use the documented default or skip that optional behavior.
privacy: Option<PrivacyClass>Privacy class used for projection, telemetry, and raw-content access decisions.
redacted_summary: Option<String>Redacted human-readable summary safe for events, telemetry, and logs.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
Source§fn clone(&self) -> ErrorContext
fn clone(&self) -> ErrorContext
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 ErrorContext
impl Debug for ErrorContext
Source§impl<'de> Deserialize<'de> for ErrorContext
impl<'de> Deserialize<'de> for ErrorContext
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 ErrorContext
Source§impl PartialEq for ErrorContext
impl PartialEq for ErrorContext
Source§fn eq(&self, other: &ErrorContext) -> bool
fn eq(&self, other: &ErrorContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ErrorContext
impl Serialize for ErrorContext
impl StructuralPartialEq for ErrorContext
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnsafeUnpin for ErrorContext
impl UnwindSafe for ErrorContext
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