pub struct WebAttribute {
pub url: String,
pub title: String,
}Fields§
§url: String网页的url,必须包含http或者https头
title: String网页的展示标题,长度限制12个UTF8字符
Trait Implementations§
Source§impl Debug for WebAttribute
impl Debug for WebAttribute
Source§impl Default for WebAttribute
impl Default for WebAttribute
Source§fn default() -> WebAttribute
fn default() -> WebAttribute
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebAttribute
impl<'de> Deserialize<'de> for WebAttribute
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 WebAttribute
impl RefUnwindSafe for WebAttribute
impl Send for WebAttribute
impl Sync for WebAttribute
impl Unpin for WebAttribute
impl UnwindSafe for WebAttribute
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