pub struct StructuredContextFrame {
pub message: String,
pub location: Option<SourceLocation>,
}Expand description
The plain-data form of crate::ContextFrame.
Fields§
§message: StringThe “while doing X” description.
location: Option<SourceLocation>Where the frame was attached, when known.
Trait Implementations§
Source§impl Clone for StructuredContextFrame
impl Clone for StructuredContextFrame
Source§fn clone(&self) -> StructuredContextFrame
fn clone(&self) -> StructuredContextFrame
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 StructuredContextFrame
impl Debug for StructuredContextFrame
Source§impl<'de> Deserialize<'de> for StructuredContextFrame
impl<'de> Deserialize<'de> for StructuredContextFrame
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 PartialEq for StructuredContextFrame
impl PartialEq for StructuredContextFrame
Source§fn eq(&self, other: &StructuredContextFrame) -> bool
fn eq(&self, other: &StructuredContextFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StructuredContextFrame
impl Serialize for StructuredContextFrame
impl Eq for StructuredContextFrame
impl StructuralPartialEq for StructuredContextFrame
Auto Trait Implementations§
impl Freeze for StructuredContextFrame
impl RefUnwindSafe for StructuredContextFrame
impl Send for StructuredContextFrame
impl Sync for StructuredContextFrame
impl Unpin for StructuredContextFrame
impl UnsafeUnpin for StructuredContextFrame
impl UnwindSafe for StructuredContextFrame
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