pub struct WeCom {
pub appid: String,
pub agent_id: String,
pub secret: String,
pub access_token: String,
pub expires_in: i64,
}Fields§
§appid: String§agent_id: String§secret: String§access_token: String§expires_in: i64Implementations§
Source§impl WeCom
impl WeCom
pub fn convert_to_openid(&mut self, userid: &str) -> Result<JsonValue, String>
pub fn login_link(&mut self, redirect_uri: &str, state: &str) -> String
pub fn get_department(&mut self) -> Result<JsonValue, String>
pub fn get_simplelist( &mut self, department_id: &str, ) -> Result<JsonValue, String>
pub fn get_simplelist_details( &mut self, department_id: &str, ) -> Result<JsonValue, String>
Trait Implementations§
Source§impl WechatMethod for WeCom
impl WechatMethod for WeCom
Auto Trait Implementations§
impl Freeze for WeCom
impl RefUnwindSafe for WeCom
impl Send for WeCom
impl Sync for WeCom
impl Unpin for WeCom
impl UnwindSafe for WeCom
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