pub struct ExposureView { /* private fields */ }Implementations§
Source§impl ExposureView
impl ExposureView
pub fn new(identity: ErrorIdentity, report: DiagnosticReport) -> Self
pub fn identity(&self) -> &ErrorIdentity
pub fn report(&self) -> &DiagnosticReport
pub fn into_parts(self) -> (ErrorIdentity, DiagnosticReport)
pub fn render_with<R>(&self, renderer: R) -> R::Outputwhere
R: ErrorRenderer,
pub fn http_status(&self, exposure_policy: &impl ExposurePolicy) -> u16
pub fn visibility(&self, exposure_policy: &impl ExposurePolicy) -> Visibility
pub fn default_hints( &self, exposure_policy: &impl ExposurePolicy, ) -> &'static [&'static str]
pub fn decision( &self, exposure_policy: &impl ExposurePolicy, ) -> ExposureDecision
pub fn snapshot( &self, exposure_policy: &impl ExposurePolicy, ) -> ErrorProtocolSnapshot
pub fn http_response( &self, exposure_policy: &impl ExposurePolicy, ) -> ErrorHttpResponse
pub fn cli_response( &self, exposure_policy: &impl ExposurePolicy, ) -> ErrorCliResponse
pub fn log_response( &self, exposure_policy: &impl ExposurePolicy, ) -> ErrorLogResponse
pub fn rpc_response( &self, exposure_policy: &impl ExposurePolicy, ) -> ErrorRpcResponse
pub fn render_user_debug(&self, exposure_policy: &impl ExposurePolicy) -> String
pub fn render_user_debug_redacted( &self, exposure_policy: &impl ExposurePolicy, redact_policy: &impl RedactPolicy, ) -> String
pub fn render_debug_summary( &self, exposure_policy: &impl ExposurePolicy, ) -> String
Trait Implementations§
Source§impl Clone for ExposureView
impl Clone for ExposureView
Source§fn clone(&self) -> ExposureView
fn clone(&self) -> ExposureView
Returns a duplicate of the value. Read more
1.0.0 · 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 ExposureView
impl Debug for ExposureView
Source§impl PartialEq for ExposureView
impl PartialEq for ExposureView
impl StructuralPartialEq for ExposureView
Auto Trait Implementations§
impl Freeze for ExposureView
impl RefUnwindSafe for ExposureView
impl Send for ExposureView
impl Sync for ExposureView
impl Unpin for ExposureView
impl UnsafeUnpin for ExposureView
impl UnwindSafe for ExposureView
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