pub struct SendGift {
pub action: String,
pub gift_name: String,
pub num: u64,
pub uname: String,
pub uid: u64,
pub medal_name: Option<String>,
pub medal_level: Option<u32>,
pub price: u32,
}Fields§
§action: String§gift_name: String§num: u64§uname: String§uid: u64§medal_name: Option<String>§medal_level: Option<u32>§price: u32Implementations§
Source§impl SendGift
impl SendGift
pub fn new_from_ctx(ctx: &WsStreamCtx) -> LiveMessageResult<'_, Self>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SendGift
impl<'de> Deserialize<'de> for SendGift
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 SendGift
impl RefUnwindSafe for SendGift
impl Send for SendGift
impl Sync for SendGift
impl Unpin for SendGift
impl UnwindSafe for SendGift
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