[][src]Struct afterparty_ng::Delivery

pub struct Delivery<'a> {
    pub id: &'a str,
    pub event: &'a str,
    pub payload: Event,
    pub unparsed_payload: &'a str,
    pub signature: Option<&'a str>,
}

A delivery encodes all information about web hook request

Fields

id: &'a strevent: &'a strpayload: Eventunparsed_payload: &'a strsignature: Option<&'a str>

Methods

impl<'a> Delivery<'a>
[src]

pub fn new(
    id: &'a str,
    event: &'a str,
    payload: &'a str,
    signature: Option<&'a str>
) -> Option<Delivery<'a>>
[src]

Trait Implementations

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

Auto Trait Implementations

impl<'a> Send for Delivery<'a>

impl<'a> Sync for Delivery<'a>

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.