pub struct SendCommentRequest {
pub time: Option<f64>,
pub mode: Option<i32>,
pub color: Option<i32>,
pub comment: Option<String>,
}Fields§
§time: Option<f64>弹幕出现时间,单位为秒
mode: Option<i32>弹幕模式:1-普通弹幕,4-顶部弹幕,5-底部弹幕
color: Option<i32>弹幕颜色,计算方式为 Rx255x255+Gx255+B
comment: Option<String>弹幕内容,不能长于100个字符
Trait Implementations§
Source§impl Clone for SendCommentRequest
impl Clone for SendCommentRequest
Source§fn clone(&self) -> SendCommentRequest
fn clone(&self) -> SendCommentRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SendCommentRequest
impl Debug for SendCommentRequest
Source§impl<'de> Deserialize<'de> for SendCommentRequest
impl<'de> Deserialize<'de> for SendCommentRequest
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 SendCommentRequest
impl RefUnwindSafe for SendCommentRequest
impl Send for SendCommentRequest
impl Sync for SendCommentRequest
impl Unpin for SendCommentRequest
impl UnsafeUnpin for SendCommentRequest
impl UnwindSafe for SendCommentRequest
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