pub struct ExtAttribute {
pub kind: u8,
pub name: String,
pub text: Option<TextAttribute>,
pub web: Option<WebAttribute>,
pub mini_program: Option<MiniProgramAttribute>,
}Fields§
§kind: u8属性类型: 0-文本 1-网页 2-小程序
name: String属性名称: 需要先确保在管理端有创建该属性,否则会忽略
text: Option<TextAttribute>文本类型的属性
web: Option<WebAttribute>网页类型的属性,url和title字段要么同时为空表示清除该属性,要么同时不为空
mini_program: Option<MiniProgramAttribute>Trait Implementations§
Source§impl Debug for ExtAttribute
impl Debug for ExtAttribute
Source§impl Default for ExtAttribute
impl Default for ExtAttribute
Source§fn default() -> ExtAttribute
fn default() -> ExtAttribute
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtAttribute
impl<'de> Deserialize<'de> for ExtAttribute
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 ExtAttribute
impl RefUnwindSafe for ExtAttribute
impl Send for ExtAttribute
impl Sync for ExtAttribute
impl Unpin for ExtAttribute
impl UnwindSafe for ExtAttribute
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