[][src]Struct vk_bot::request::Object

pub struct Object { /* fields omitted */ }

An object of a CallbackAPIRequest.

Methods

impl Object[src]

pub fn new(
    from_id: Option<Integer>,
    peer_id: Option<Integer>,
    user_id: Option<Integer>,
    text: Option<String>,
    payload: Option<String>,
    action: Option<Value>,
    extra: HashMap<String, Value>
) -> Self
[src]

Creates a new Object.

pub fn get_from_id(&self) -> &Option<Integer>[src]

Returns the "from" ID of this Object.

pub fn peer_id(&self) -> &Option<Integer>[src]

Returns the peer ID of this Object.

pub fn user_id(&self) -> &Option<Integer>[src]

Returns the user ID of this Object.

pub fn text(&self) -> &Option<String>[src]

Returns the text of this Object.

pub fn payload(&self) -> &Option<String>[src]

Returns the payload of this Object.

pub fn action(&self) -> &Option<Value>[src]

Returns the action of this Object.

pub fn extra(&self) -> &HashMap<String, Value>[src]

Returns extra fields of this Object.

Trait Implementations

impl Default for Object[src]

impl Clone for Object[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Object[src]

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

Auto Trait Implementations

impl Send for Object

impl Sync for Object

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

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

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.

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

impl<T> IntoCollection for T

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

impl<T> Erased for T