[][src]Enum ackorelic::transaction::Attribute

pub enum Attribute<'a> {
    Int(i32),
    Long(i64),
    Float(f64),
    String(&'a str),
    OwnedString(&'a String),
}

An attribute to add to a transaction.

Variants

Int(i32)

A short (i32) integer attribute.

Long(i64)

A long (i64) integer attribute.

Float(f64)

A float (f64) attribute.

String(&'a str)

A string attribute.

OwnedString(&'a String)

An owned string attribute.

Trait Implementations

impl<'a> From<i32> for Attribute<'a>[src]

impl<'a> From<i64> for Attribute<'a>[src]

impl<'a> From<f64> for Attribute<'a>[src]

impl<'a> From<&'a str> for Attribute<'a>[src]

impl<'a> From<&'a String> for Attribute<'a>[src]

impl<'a> Debug for Attribute<'a>[src]

Auto Trait Implementations

impl<'a> Sync for Attribute<'a>

impl<'a> Unpin for Attribute<'a>

impl<'a> Send for Attribute<'a>

impl<'a> UnwindSafe for Attribute<'a>

impl<'a> RefUnwindSafe for Attribute<'a>

Blanket Implementations

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

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

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.

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

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

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

impl<T> IntoSql for T[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more