Struct dingtalk_rs::client::Client
source · [−]pub struct Client { /* private fields */ }
Implementations
Trait Implementations
sourceimpl DepartmentManager for Client
impl DepartmentManager for Client
sourcefn department_list<'life0, 'async_trait>(
&'life0 self,
params: Option<ParamsDepartmentList>
) -> Pin<Box<dyn Future<Output = Result<Vec<DeptBaseResponse>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn department_list<'life0, 'async_trait>(
&'life0 self,
params: Option<ParamsDepartmentList>
) -> Pin<Box<dyn Future<Output = Result<Vec<DeptBaseResponse>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
获取部门列表 https://open.dingtalk.com/document/orgapp-server/obtain-the-department-list-v2 Read more
sourceimpl UserManager for Client
impl UserManager for Client
sourcefn user_create<'life0, 'async_trait>(
&'life0 self,
params: ParamsCreateUser
) -> Pin<Box<dyn Future<Output = Result<ResponseUserCreate>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn user_create<'life0, 'async_trait>(
&'life0 self,
params: ParamsCreateUser
) -> Pin<Box<dyn Future<Output = Result<ResponseUserCreate>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
创建用户 https://open.dingtalk.com/document/orgapp-server/user-information-creation Read more
sourcefn user_get_by_mobile<'life0, 'life1, 'async_trait>(
&'life0 self,
mobile: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn user_get_by_mobile<'life0, 'life1, 'async_trait>(
&'life0 self,
mobile: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
根据手机号查询用户, 根据手机号可以查询在职员工的userId。如果员工离职,无法根据手机号获取用户的userId https://open.dingtalk.com/document/orgapp-server/query-users-by-phone-number Read more
Auto Trait Implementations
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more