pub struct DynamicRequest {
pub attach_card: Option<Value>,
pub content: DynamicContent,
pub meta: Option<Value>,
pub scene: u8,
pub pics: Option<Vec<DynamicPic>>,
pub topic: Option<DynamicTopic>,
pub option: Option<DynamicOption>,
}Expand description
复杂动态请求体
Fields§
§attach_card: Option<Value>特殊卡片,非必要
content: DynamicContent动态内容
meta: Option<Value>元信息,非必要
scene: u8动态类型
pics: Option<Vec<DynamicPic>>携带的图片
topic: Option<DynamicTopic>话题
option: Option<DynamicOption>互动设置
Trait Implementations§
Source§impl Clone for DynamicRequest
impl Clone for DynamicRequest
Source§fn clone(&self) -> DynamicRequest
fn clone(&self) -> DynamicRequest
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 moreSource§impl Debug for DynamicRequest
impl Debug for DynamicRequest
Source§impl<'de> Deserialize<'de> for DynamicRequest
impl<'de> Deserialize<'de> for DynamicRequest
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 DynamicRequest
impl RefUnwindSafe for DynamicRequest
impl Send for DynamicRequest
impl Sync for DynamicRequest
impl Unpin for DynamicRequest
impl UnwindSafe for DynamicRequest
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