pub struct UserVipInfo {}Expand description
用户 VIP 信息
Fields§
§joint_vip: bool§color: String§underline: bool§metal: bool§auto_checkin: u32§bold: bool§o_id: String§state: bool§user_id: String§lv_code: String§expires_at: u64§created_at: u64§updated_at: u64Implementations§
Source§impl UserVipInfo
impl UserVipInfo
Sourcepub fn expires_date(&self) -> DateTime<Utc>
pub fn expires_date(&self) -> DateTime<Utc>
过期日期
Sourcepub fn created_date(&self) -> DateTime<Utc>
pub fn created_date(&self) -> DateTime<Utc>
创建日期
Sourcepub fn updated_date(&self) -> DateTime<Utc>
pub fn updated_date(&self) -> DateTime<Utc>
更新日期
pub fn from_value(data: &Value) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for UserVipInfo
impl Clone for UserVipInfo
Source§fn clone(&self) -> UserVipInfo
fn clone(&self) -> UserVipInfo
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 UserVipInfo
impl Debug for UserVipInfo
Source§impl Default for UserVipInfo
impl Default for UserVipInfo
Source§fn default() -> UserVipInfo
fn default() -> UserVipInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserVipInfo
impl<'de> Deserialize<'de> for UserVipInfo
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 UserVipInfo
impl RefUnwindSafe for UserVipInfo
impl Send for UserVipInfo
impl Sync for UserVipInfo
impl Unpin for UserVipInfo
impl UnsafeUnpin for UserVipInfo
impl UnwindSafe for UserVipInfo
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