pub struct RedPacketSend {
pub type: String,
pub money: u32,
pub count: u32,
pub message: String,
pub receivers: Vec<String>,
pub gesture: Option<u8>,
}Fields§
§type: String§money: u32§count: u32§message: String§receivers: Vec<String>§gesture: Option<u8>Implementations§
Source§impl RedPacketSend
impl RedPacketSend
pub fn new(type: RedPacketType, money: u32, count: u32, message: String) -> Self
pub fn with_receivers(self, receivers: Vec<String>) -> Self
pub fn with_gesture(self, gesture: GestureType) -> Self
Trait Implementations§
Source§impl Clone for RedPacketSend
impl Clone for RedPacketSend
Source§impl Debug for RedPacketSend
impl Debug for RedPacketSend
Auto Trait Implementations§
impl Forget for RedPacketSend
impl Freeze for RedPacketSend
impl Move for RedPacketSend
impl RefUnwindSafe for RedPacketSend
impl Send for RedPacketSend
impl Sync for RedPacketSend
impl Unpin for RedPacketSend
impl UnsafeUnpin for RedPacketSend
impl UnwindSafe for RedPacketSend
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