pub struct SetMyShortDescription {
pub short_description: Option<String>,
pub language_code: Option<String>,
}Expand description
Use this method to change the bot’s short description, which is shown on the bot’s profile page and is sent together with the link when users share the bot. Returns True on success.
Fields§
§short_description: Option<String>New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated short description for the given language.
language_code: Option<String>A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users for whose language there is no dedicated short description.
Implementations§
Trait Implementations§
Source§impl Clone for SetMyShortDescription
impl Clone for SetMyShortDescription
Source§impl Debug for SetMyShortDescription
impl Debug for SetMyShortDescription
Source§impl Default for SetMyShortDescription
impl Default for SetMyShortDescription
impl Eq for SetMyShortDescription
Source§impl Hash for SetMyShortDescription
impl Hash for SetMyShortDescription
Source§impl PartialEq for SetMyShortDescription
impl PartialEq for SetMyShortDescription
Source§impl Payload for SetMyShortDescription
impl Payload for SetMyShortDescription
Source§const NAME: &'static str = "SetMyShortDescription"
const NAME: &'static str = "SetMyShortDescription"
Name of the Rust payload (for example,
EditMessageTextInline).Source§const TELEGRAM_METHOD: &'static str = Self::NAME
const TELEGRAM_METHOD: &'static str = Self::NAME
Case-insensitive Telegram method called on the wire (for example,
EditMessageText). Defaults to the payload name.Source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates with
big timeout), the minimum timeout that should be used.Source§impl Serialize for SetMyShortDescription
impl Serialize for SetMyShortDescription
impl StructuralPartialEq for SetMyShortDescription
Auto Trait Implementations§
impl Forget for SetMyShortDescription
impl Freeze for SetMyShortDescription
impl Move for SetMyShortDescription
impl RefUnwindSafe for SetMyShortDescription
impl Send for SetMyShortDescriptionwhere
RawVecInner: Send,
impl Sync for SetMyShortDescriptionwhere
RawVecInner: Sync,
impl Unpin for SetMyShortDescription
impl UnsafeUnpin for SetMyShortDescription
impl UnwindSafe for SetMyShortDescriptionwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
Source§fn payload_mut(&mut self) -> &mut P
fn payload_mut(&mut self) -> &mut P
Gain mutable access to the underlying payload.
Source§fn payload_ref(&self) -> &P
fn payload_ref(&self) -> &P
Gain immutable access to the underlying payload.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<P> SetMyShortDescriptionSetters for Pwhere
P: HasPayload<Payload = SetMyShortDescription>,
impl<P> SetMyShortDescriptionSetters for Pwhere
P: HasPayload<Payload = SetMyShortDescription>,
Source§fn short_description<T>(self, value: T) -> Self
fn short_description<T>(self, value: T) -> Self
Setter for
short_description field.Source§fn language_code<T>(self, value: T) -> Self
fn language_code<T>(self, value: T) -> Self
Setter for
language_code field.