pub struct VipLabel {
pub text: String,
pub label_theme: String,
pub text_color: String,
pub bg_style: u32,
pub bg_color: String,
}Expand description
会员标签结构体
Fields§
§text: String会员类型文案(大会员/年度大会员/十年大会员/百年大会员/最强绿鲤鱼)
label_theme: String会员标签(vip/annual_vip/ten_annual_vip/hundred_annual_vip/fools_day_hundred_annual_vip)
text_color: String会员标签文本颜色
bg_style: u32样式
bg_color: String会员标签背景颜色(颜色码,一般为#FB7299)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VipLabel
impl<'de> Deserialize<'de> for VipLabel
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 VipLabel
impl RefUnwindSafe for VipLabel
impl Send for VipLabel
impl Sync for VipLabel
impl Unpin for VipLabel
impl UnsafeUnpin for VipLabel
impl UnwindSafe for VipLabel
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