Struct botx_api::bot::models::attachment::LinkAttachment
source · pub struct LinkAttachment {
pub url: String,
pub url_title: Option<String>,
pub url_preview: Option<String>,
pub url_text: Option<String>,
}Fields§
§url: Stringурл ссылки
url_title: Option<String>заголовок
url_preview: Option<String>урл изображения для предварительного просмотра ссылки
url_text: Option<String>текст ссылки
Trait Implementations§
source§impl Debug for LinkAttachment
impl Debug for LinkAttachment
source§impl<'de> Deserialize<'de> for LinkAttachment
impl<'de> Deserialize<'de> for LinkAttachment
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
source§impl PartialEq<LinkAttachment> for LinkAttachment
impl PartialEq<LinkAttachment> for LinkAttachment
source§fn eq(&self, other: &LinkAttachment) -> bool
fn eq(&self, other: &LinkAttachment) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for LinkAttachment
impl Serialize for LinkAttachment
impl Eq for LinkAttachment
impl StructuralEq for LinkAttachment
impl StructuralPartialEq for LinkAttachment
Auto Trait Implementations§
impl RefUnwindSafe for LinkAttachment
impl Send for LinkAttachment
impl Sync for LinkAttachment
impl Unpin for LinkAttachment
impl UnwindSafe for LinkAttachment
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.