pub struct SubscribeMessageOptions {
pub touser: OpenId,
pub template_id: String,
pub data: SubscribeMessageData,
pub page: Option<String>,
pub miniprogram_state: Option<MiniProgramState>,
pub lang: Option<Lang>,
}Expand description
Options for sending subscribe messages
Fields§
§touser: OpenIdRecipient’s OpenID
template_id: StringTemplate ID
data: SubscribeMessageDataTemplate data
page: Option<String>Page to navigate to (optional)
miniprogram_state: Option<MiniProgramState>Mini program state: “developer”, “trial”, or “formal” (optional)
lang: Option<Lang>Language: “zh_CN”, “en_US”, “zh_HK”, “zh_TW” (optional)
Trait Implementations§
Source§impl Clone for SubscribeMessageOptions
impl Clone for SubscribeMessageOptions
Source§fn clone(&self) -> SubscribeMessageOptions
fn clone(&self) -> SubscribeMessageOptions
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 moreAuto Trait Implementations§
impl Freeze for SubscribeMessageOptions
impl RefUnwindSafe for SubscribeMessageOptions
impl Send for SubscribeMessageOptions
impl Sync for SubscribeMessageOptions
impl Unpin for SubscribeMessageOptions
impl UnsafeUnpin for SubscribeMessageOptions
impl UnwindSafe for SubscribeMessageOptions
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