#[non_exhaustive]pub struct StackTraceElement {
pub step: String,
pub routine: String,
pub position: Option<Position>,
/* private fields */
}Expand description
A single stack element (frame) where an error occurred.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.step: StringThe step the error occurred at.
routine: StringThe routine where the error occurred.
position: Option<Position>The source position information of the stack trace element.
Implementations§
Source§impl StackTraceElement
impl StackTraceElement
pub fn new() -> Self
Sourcepub fn set_routine<T: Into<String>>(self, v: T) -> Self
pub fn set_routine<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_position<T>(self, v: T) -> Self
pub fn set_position<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_position<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_position<T>(self, v: Option<T>) -> Self
Sets or clears the value of position.
§Example
ⓘ
use google_cloud_workflows_executions_v1::model::execution::stack_trace_element::Position;
let x = StackTraceElement::new().set_or_clear_position(Some(Position::default()/* use setters */));
let x = StackTraceElement::new().set_or_clear_position(None::<Position>);Trait Implementations§
Source§impl Clone for StackTraceElement
impl Clone for StackTraceElement
Source§fn clone(&self) -> StackTraceElement
fn clone(&self) -> StackTraceElement
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 StackTraceElement
impl Debug for StackTraceElement
Source§impl Default for StackTraceElement
impl Default for StackTraceElement
Source§fn default() -> StackTraceElement
fn default() -> StackTraceElement
Returns the “default value” for a type. Read more
Source§impl Message for StackTraceElement
impl Message for StackTraceElement
Source§impl PartialEq for StackTraceElement
impl PartialEq for StackTraceElement
impl StructuralPartialEq for StackTraceElement
Auto Trait Implementations§
impl Freeze for StackTraceElement
impl RefUnwindSafe for StackTraceElement
impl Send for StackTraceElement
impl Sync for StackTraceElement
impl Unpin for StackTraceElement
impl UnwindSafe for StackTraceElement
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