pub struct BubbleOptions {
pub silent: Option<bool>,
pub h_size: Option<u32>,
pub show_alert: Option<bool>,
pub alert_text: Option<String>,
pub handler: Option<Handler>,
pub font_color: Option<String>,
pub background_color: Option<String>,
pub align: Option<Align>,
}
Fields§
§silent: Option<bool>
(Default: 1) - если значение true, то при нажатие на кнопку в чат не будет отправлено сообщение с текстом команды и сама команда отправится боту в фоне
h_size: Option<u32>
(Default: 1) - размер кнопки по горизонтали
show_alert: Option<bool>
(Default: false) - если значение true, то при нажатии на кнопку отобразится всплывающее уведомление с заданным в alert_text сообщением
alert_text: Option<String>
(Default: null) - текст уведомления. Если значение null, то выведется тело команды
handler: Option<Handler>
(Default: “bot”) - если значение “client”, то при нажатии на кнопку команда не должна отправляться боту, а должна обрабатываться самим клиентом
font_color: Option<String>
(Default: null) - цвет текста в hex формате
background_color: Option<String>
(Default: null) - цвет фона/границ в hex формате
align: Option<Align>
(Default: “left”) - выравнивание текста left|center|right
Trait Implementations§
Source§impl Clone for BubbleOptions
impl Clone for BubbleOptions
Source§fn clone(&self) -> BubbleOptions
fn clone(&self) -> BubbleOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BubbleOptions
impl Debug for BubbleOptions
Source§impl Default for BubbleOptions
impl Default for BubbleOptions
Source§fn default() -> BubbleOptions
fn default() -> BubbleOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BubbleOptions
impl<'de> Deserialize<'de> for BubbleOptions
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
Auto Trait Implementations§
impl Freeze for BubbleOptions
impl RefUnwindSafe for BubbleOptions
impl Send for BubbleOptions
impl Sync for BubbleOptions
impl Unpin for BubbleOptions
impl UnwindSafe for BubbleOptions
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