pub struct InternalLinkTypeChatBoost {
pub url: String,
}
Expand description
The link is a link to boost a Telegram chat. Call getChatBoostLinkInfo with the given URL to process the link. If the chat is found, then call getChatBoostStatus and getAvailableChatBoostSlots to get the current boost status and check whether the chat can be boosted. If the user wants to boost the chat and the chat can be boosted, then call boostChat
Fields§
§url: String
URL to be passed to getChatBoostLinkInfo
Trait Implementations§
Source§impl Clone for InternalLinkTypeChatBoost
impl Clone for InternalLinkTypeChatBoost
Source§fn clone(&self) -> InternalLinkTypeChatBoost
fn clone(&self) -> InternalLinkTypeChatBoost
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 InternalLinkTypeChatBoost
impl Debug for InternalLinkTypeChatBoost
Source§impl Default for InternalLinkTypeChatBoost
impl Default for InternalLinkTypeChatBoost
Source§fn default() -> InternalLinkTypeChatBoost
fn default() -> InternalLinkTypeChatBoost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InternalLinkTypeChatBoost
impl<'de> Deserialize<'de> for InternalLinkTypeChatBoost
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for InternalLinkTypeChatBoost
Auto Trait Implementations§
impl Freeze for InternalLinkTypeChatBoost
impl RefUnwindSafe for InternalLinkTypeChatBoost
impl Send for InternalLinkTypeChatBoost
impl Sync for InternalLinkTypeChatBoost
impl Unpin for InternalLinkTypeChatBoost
impl UnwindSafe for InternalLinkTypeChatBoost
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