pub struct UrlButton {
pub text: String,
pub url: String,
pub style: Option<ButtonStyle>,
}Expand description
A URL button inside a Block::Buttons row.
Fields§
§text: StringButton label (plain text).
url: StringHTTP(S) or tg:// URL.
style: Option<ButtonStyle>Optional style.
Trait Implementations§
impl StructuralPartialEq for UrlButton
Auto Trait Implementations§
impl Forget for UrlButton
impl Freeze for UrlButton
impl Move for UrlButton
impl RefUnwindSafe for UrlButton
impl Send for UrlButton
impl Sync for UrlButton
impl Unpin for UrlButton
impl UnsafeUnpin for UrlButton
impl UnwindSafe for UrlButton
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