pub struct CardCallbackMessage {
pub extension: Value,
pub corp_id: String,
pub user_id: String,
pub card_instance_id: String,
pub content: Value,
pub callback_type: String,
pub space_type: String,
pub user_id_type: i32,
pub space_id: String,
}Expand description
卡片回调消息
Fields§
§extension: Value扩展信息
corp_id: String企业 ID
user_id: String用户 ID
card_instance_id: String卡片实例 ID
content: Value回调内容
callback_type: String回调类型
space_type: String空间类型
user_id_type: i32用户 ID 类型
space_id: String空间 ID
Implementations§
Source§impl CardCallbackMessage
impl CardCallbackMessage
Sourcepub fn from_json_str(data: &str) -> Result<Self>
pub fn from_json_str(data: &str) -> Result<Self>
从 JSON 字符串解析(处理 extension 和 content 的二次解析)
Sourcepub fn from_value(value: &Value) -> Result<Self>
pub fn from_value(value: &Value) -> Result<Self>
从 JSON Value 解析(处理 extension 和 content 的字符串→对象转换)
Trait Implementations§
Source§impl Clone for CardCallbackMessage
impl Clone for CardCallbackMessage
Source§fn clone(&self) -> CardCallbackMessage
fn clone(&self) -> CardCallbackMessage
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 CardCallbackMessage
impl Debug for CardCallbackMessage
Source§impl Default for CardCallbackMessage
impl Default for CardCallbackMessage
Source§fn default() -> CardCallbackMessage
fn default() -> CardCallbackMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CardCallbackMessage
impl<'de> Deserialize<'de> for CardCallbackMessage
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 CardCallbackMessage
impl RefUnwindSafe for CardCallbackMessage
impl Send for CardCallbackMessage
impl Sync for CardCallbackMessage
impl Unpin for CardCallbackMessage
impl UnsafeUnpin for CardCallbackMessage
impl UnwindSafe for CardCallbackMessage
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