[−][src]Struct vk_bot::request::Object
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]
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
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(&self) -> 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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> IntoCollection for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T, I> AsResult for T where
I: Input,
I: Input,