pub struct EditMessageParams {
pub text: Option<String>,
pub format: Option<String>,
pub attachments: Vec<Attachment>,
pub inline_keyboard: Option<InlineKeyboard>,
pub disable_link_preview: Option<bool>,
}Expand description
Параметры для редактирования сообщения.
Fields§
§text: Option<String>Новый текст сообщения.
format: Option<String>Формат текста: "markdown" или "html".
attachments: Vec<Attachment>Новый список вложений (полностью заменяет существующие).
inline_keyboard: Option<InlineKeyboard>Новая inline-клавиатура (если требуется заменить).
disable_link_preview: Option<bool>Отключить предпросмотр ссылок.
Trait Implementations§
Source§impl Clone for EditMessageParams
impl Clone for EditMessageParams
Source§fn clone(&self) -> EditMessageParams
fn clone(&self) -> EditMessageParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EditMessageParams
impl Debug for EditMessageParams
Source§impl Default for EditMessageParams
impl Default for EditMessageParams
Source§fn default() -> EditMessageParams
fn default() -> EditMessageParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EditMessageParams
impl RefUnwindSafe for EditMessageParams
impl Send for EditMessageParams
impl Sync for EditMessageParams
impl Unpin for EditMessageParams
impl UnsafeUnpin for EditMessageParams
impl UnwindSafe for EditMessageParams
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