Enum clacks_mtproto::mtproto::BotInlineResult
[−]
[src]
pub enum BotInlineResult { Result(Result), MediaResult(MediaResult), }
TL-derived from BotInlineResult
botInlineResult#9bebaeb9 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb_url:flags.4?string content_url:flags.5?string content_type:flags.5?string w:flags.6?int h:flags.6?int duration:flags.7?int send_message:BotInlineMessage = BotInlineResult;
botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult;
Variants
Result(Result)
MediaResult(MediaResult)
Methods
impl BotInlineResult
[src]
pub fn content_type(&self) -> Option<&string>
[src]
pub fn content_url(&self) -> Option<&string>
[src]
pub fn description(&self) -> Option<&string>
[src]
pub fn document(&self) -> Option<&Document>
[src]
pub fn duration(&self) -> Option<&int>
[src]
pub fn h(&self) -> Option<&int>
[src]
pub fn id(&self) -> &string
[src]
pub fn photo(&self) -> Option<&Photo>
[src]
pub fn send_message(&self) -> &BotInlineMessage
[src]
pub fn thumb_url(&self) -> Option<&string>
[src]
pub fn title(&self) -> Option<&string>
[src]
pub fn type_(&self) -> &string
[src]
pub fn url(&self) -> Option<&string>
[src]
pub fn w(&self) -> Option<&int>
[src]
Trait Implementations
impl Debug for BotInlineResult
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for BotInlineResult
[src]
fn clone(&self) -> BotInlineResult
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl BoxedSerialize for BotInlineResult
[src]
fn serialize_boxed<'this>(
&'this self
) -> (ConstructorNumber, &'this BareSerialize)
[src]
&'this self
) -> (ConstructorNumber, &'this BareSerialize)
fn boxed_serialized_bytes(&self) -> Result<Vec<u8>>
[src]
impl BoxedDeserialize for BotInlineResult
[src]
fn possible_constructors() -> Vec<ConstructorNumber>
[src]
fn deserialize_boxed(
_id: ConstructorNumber,
_de: &mut Deserializer
) -> Result<Self>
[src]
_id: ConstructorNumber,
_de: &mut Deserializer
) -> Result<Self>