pub struct UserInfo {
pub subscribe: i32,
pub openid: String,
pub language: Option<String>,
pub subscribe_time: Option<i64>,
pub unionid: Option<String>,
pub remark: Option<String>,
pub groupid: Option<i32>,
pub tagid_list: Option<Vec<i32>>,
pub subscribe_scene: Option<String>,
pub qr_scene: Option<i64>,
pub qr_scene_str: Option<String>,
}Expand description
User information returned by WeChat API.
Fields§
§subscribe: i32Whether user has subscribed (0 = no, 1 = yes)
openid: StringUser’s OpenID
language: Option<String>User’s language setting
subscribe_time: Option<i64>Subscribe timestamp
unionid: Option<String>User’s UnionID (if bound to open platform)
remark: Option<String>Remark set by the official account
groupid: Option<i32>Group ID the user belongs to
tagid_list: Option<Vec<i32>>Tag IDs the user has
subscribe_scene: Option<String>Subscribe scene
qr_scene: Option<i64>QR scene value
qr_scene_str: Option<String>QR scene string
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserInfo
impl<'de> Deserialize<'de> for UserInfo
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 UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnwindSafe for UserInfo
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