pub struct RedPacket {
pub type: RedPacketType,
pub money: u32,
pub count: u32,
pub msg: String,
pub recivers: Vec<String>,
pub gesture: Option<GestureType>,
}Expand description
红包数据
Fields§
§type: RedPacketType红包类型
money: u32红包积分
count: u32红包个数
msg: String祝福语
recivers: Vec<String>接收者, 专属红包有效
gesture: Option<GestureType>出拳, 猜拳红包有效
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedPacket
impl RefUnwindSafe for RedPacket
impl Send for RedPacket
impl Sync for RedPacket
impl Unpin for RedPacket
impl UnsafeUnpin for RedPacket
impl UnwindSafe for RedPacket
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