[][src]Struct vk_bot::request::CallbackAPIRequest

pub struct CallbackAPIRequest { /* fields omitted */ }

A request received from Callback API.


impl CallbackAPIRequest[src]

pub fn new(secret: &str, group_id: i32, type: &str, object: Object) -> Self[src]

Creates a new CallbackAPIRequest.

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

Returns the secret sent in this request.

pub fn group_id(&self) -> i32[src]

Returns the group ID sent in this request.

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

Returns the type of this request.

pub fn object(&self) -> &Object[src]

Returns the Object sent in this request.

Trait Implementations

impl Debug for CallbackAPIRequest[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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

impl<T> IntoCollection for T

impl<T, I> AsResult for T where
    I: Input, 

impl<T> Erased for T