Struct ql2::Frame[][src]

pub struct Frame {
    pub type: Option<i32>,
    pub pos: Option<i64>,
    pub opt: Option<String>,
}

A backtrace frame (see backtrace in Response below)

Fields

type: Option<i32>pos: Option<i64>

The index of the positional argument.

opt: Option<String>

The name of the optional argument.

Implementations

impl Frame[src]

pub fn type(&self) -> FrameType[src]

Returns the enum value of type, or the default if the field is unset or set to an invalid enum value.

pub fn set_type(&mut self, value: FrameType)[src]

Sets type to the provided enum value.

pub fn pos(&self) -> i64[src]

Returns the value of pos, or the default value if pos is unset.

pub fn opt(&self) -> &str[src]

Returns the value of opt, or the default value if opt is unset.

Trait Implementations

impl Clone for Frame[src]

impl Debug for Frame[src]

impl Default for Frame[src]

impl<'de> Deserialize<'de> for Frame[src]

impl Message for Frame[src]

impl PartialEq<Frame> for Frame[src]

impl Serialize for Frame[src]

impl StructuralPartialEq for Frame[src]

Auto Trait Implementations

impl RefUnwindSafe for Frame

impl Send for Frame

impl Sync for Frame

impl Unpin for Frame

impl UnwindSafe for Frame

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.