pub struct RedPacketBase {
pub count: u32,
pub gesture: Option<GestureType>,
pub got: u32,
pub msg: String,
pub userName: String,
pub userAvatarURL: String,
}Expand description
红包基本信息
Fields§
§count: u32数量
gesture: Option<GestureType>猜拳类型
got: u32领取数
msg: String祝福语
userName: String发送者用户名
userAvatarURL: String用户头像
Implementations§
Source§impl RedPacketBase
impl RedPacketBase
pub fn from_value(data: &Value) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for RedPacketBase
impl Clone for RedPacketBase
Source§fn clone(&self) -> RedPacketBase
fn clone(&self) -> RedPacketBase
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 moreAuto Trait Implementations§
impl Freeze for RedPacketBase
impl RefUnwindSafe for RedPacketBase
impl Send for RedPacketBase
impl Sync for RedPacketBase
impl Unpin for RedPacketBase
impl UnsafeUnpin for RedPacketBase
impl UnwindSafe for RedPacketBase
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