pub struct ActivityItem {
pub id: i32,
pub state: i32,
pub stime: i64,
pub etime: i64,
pub ctime: i64,
pub mtime: i64,
pub name: String,
pub h5_url: String,
pub h5_cover: String,
pub page_name: String,
pub plat: i32,
pub desc: String,
}Expand description
活动项目
Fields§
§id: i32活动 ID
state: i32固定值 1
stime: i64开始时间 UNIX 秒级时间戳
etime: i64结束时间 UNIX 秒级时间戳
ctime: i64创建时间? UNIX 秒级时间戳, 可能为 0
mtime: i64修改时间? UNIX 秒级时间戳, 可能为 0
name: String活动名称
h5_url: String活动链接
h5_cover: String活动封面
page_name: String页面名称
plat: i32活动平台类型? 即 URL 中 plat 参数
desc: String活动描述
Trait Implementations§
Source§impl Clone for ActivityItem
impl Clone for ActivityItem
Source§fn clone(&self) -> ActivityItem
fn clone(&self) -> ActivityItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActivityItem
impl Debug for ActivityItem
Source§impl<'de> Deserialize<'de> for ActivityItem
impl<'de> Deserialize<'de> for ActivityItem
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 ActivityItem
impl RefUnwindSafe for ActivityItem
impl Send for ActivityItem
impl Sync for ActivityItem
impl Unpin for ActivityItem
impl UnwindSafe for ActivityItem
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