pub struct OaBody {
pub title: Option<String>,
pub form: Option<Vec<KvPair>>,
pub rich: Option<Rich>,
pub content: Option<String>,
pub image: Option<String>,
pub file_count: Option<String>,
pub author: Option<String>,
}
Fields§
§title: Option<String>
消息体的标题,建议50个字符以内
form: Option<Vec<KvPair>>
消息体的表单,最多显示6个,超过会被隐藏
rich: Option<Rich>
单行富文本信息
content: Option<String>
消息体的内容,最多显示3行
image: Option<String>
消息体中的图片,支持图片资源@mediaId。建议宽600像素 x 400像素,宽高比3 : 2。 企业内部应用通过上传媒体文件接口获取 第三方企业应用通过上传媒体文件接口获取
file_count: Option<String>
自定义的附件数目。此数字仅供显示,钉钉不作验证
自定义的作者名字
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OaBody
impl<'de> Deserialize<'de> for OaBody
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 OaBody
impl RefUnwindSafe for OaBody
impl Send for OaBody
impl Sync for OaBody
impl Unpin for OaBody
impl UnwindSafe for OaBody
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