pub struct BotResults {
pub gallery: bool,
pub query_id: i64,
pub next_offset: Option<String>,
pub switch_pm: Option<InlineBotSwitchPm>,
pub switch_webview: Option<InlineBotWebView>,
pub results: Vec<BotInlineResult>,
pub cache_time: i32,
pub users: Vec<User>,
}Expand description
Generated from:
messages.botResults#e021f2f6 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM switch_webview:flags.3?InlineBotWebView results:Vector<BotInlineResult> cache_time:int users:Vector<User> = messages.BotResultsFields§
§gallery: bool§query_id: i64§next_offset: Option<String>§switch_pm: Option<InlineBotSwitchPm>§switch_webview: Option<InlineBotWebView>§results: Vec<BotInlineResult>§cache_time: i32§users: Vec<User>Trait Implementations§
Source§impl Clone for BotResults
impl Clone for BotResults
Source§fn clone(&self) -> BotResults
fn clone(&self) -> BotResults
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BotResults
impl Debug for BotResults
Source§impl Deserializable for BotResults
impl Deserializable for BotResults
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<BotResults> for BotResults
impl From<BotResults> for BotResults
Source§fn from(x: BotResults) -> Self
fn from(x: BotResults) -> Self
Converts to this type from the input type.
Source§impl Identifiable for BotResults
impl Identifiable for BotResults
Source§const CONSTRUCTOR_ID: u32 = 0xe021f2f6
const CONSTRUCTOR_ID: u32 = 0xe021f2f6
The constructor ID as specified in the TL schema.
Source§impl PartialEq for BotResults
impl PartialEq for BotResults
Source§impl Serializable for BotResults
impl Serializable for BotResults
Source§impl TryFrom<BotResults> for BotResults
impl TryFrom<BotResults> for BotResults
Source§type Error = BotResults
type Error = BotResults
The type returned in the event of a conversion error.
impl StructuralPartialEq for BotResults
Auto Trait Implementations§
impl Freeze for BotResults
impl RefUnwindSafe for BotResults
impl Send for BotResults
impl Sync for BotResults
impl Unpin for BotResults
impl UnsafeUnpin for BotResults
impl UnwindSafe for BotResults
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more