Docs.rs
wechaty-0.1.0-beta.1
wechaty 0.1.0-beta.1
Permalink
Docs.rs crate page
Apache-2.0
Links
crates.io
Source
Owners
lucifer1004
Dependencies
actix ^0.11
normal
actix-rt ^2.0
normal
async-trait ^0.1
normal
futures ^0.3
normal
log ^0.4
normal
tokio ^1.2
normal
tokio-stream ^0.1
normal
wechaty_puppet ^0.1.0-beta.1
normal
env_logger ^0.8
dev
wechaty-puppet-service ^0.1.0-beta.1
dev
Versions
0.88%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Contact
wechaty
0.1.0-beta.1
Contact
Aliased Type
Trait Implementations
Debug
Display
IntoContact<T>
In crate wechaty
wechaty
Type Alias
Contact
Copy item path
Source
pub type Contact<T> = Entity<T,
ContactPayload
>;
Aliased Type
§
pub struct Contact<T> {
/* private fields */
}
Trait Implementations
§
Source
§
impl<T>
Debug
for
Contact
<T>
where T: 'static +
PuppetImpl
+
Clone
+
Unpin
+
Send
+
Sync
,
Source
§
fn
fmt
(&self, fmt: &mut
Formatter
<'_>) ->
Result
Formats the value using the given formatter.
Read more
Source
§
impl<T>
Display
for
Contact
<T>
where T: 'static +
PuppetImpl
+
Clone
+
Unpin
+
Send
+
Sync
,
Source
§
fn
fmt
(&self, fmt: &mut
Formatter
<'_>) ->
Result
Formats the value using the given formatter.
Read more
Source
§
impl<T>
IntoContact
<T> for
Contact
<T>
where T: 'static +
PuppetImpl
+
Clone
+
Unpin
+
Send
+
Sync
,
Source
§
fn
id
(&self) ->
String
Source
§
fn
ctx
(&self) ->
WechatyContext
<T>
Source
§
fn
identity
(&self) ->
String
Source
§
fn
payload
(&self) ->
Option
<
ContactPayload
>
Source
§
fn
set_payload
(&mut self, payload:
Option
<
ContactPayload
>)
Source
§
fn
is_ready
(&self) ->
bool
Source
§
fn
ready
<'life0, 'async_trait>( &'life0 mut self, force_sync:
bool
, ) ->
Pin
<
Box
<dyn
Future
<Output =
Result
<
()
,
WechatyError
>> +
Send
+ 'async_trait>>
where Self:
Send
+ 'async_trait, 'life0: 'async_trait,
Source
§
fn
sync
<'life0, 'async_trait>( &'life0 mut self, ) ->
Pin
<
Box
<dyn
Future
<Output =
Result
<
()
,
WechatyError
>> +
Send
+ 'async_trait>>
where Self:
Send
+ 'async_trait, 'life0: 'async_trait,
Source
§
fn
name
(&self) ->
Option
<
String
>
Source
§
fn
gender
(&self) ->
Option
<
ContactGender
>
Source
§
fn
province
(&self) ->
Option
<
String
>
Source
§
fn
city
(&self) ->
Option
<
String
>
Source
§
fn
friend
(&self) ->
Option
<
bool
>
Source
§
fn
star
(&self) ->
Option
<
bool
>
Source
§
fn
alias
(&self) ->
Option
<
String
>
Source
§
fn
set_alias
<'life0, 'async_trait>( &'life0 mut self, new_alias:
String
, ) ->
Pin
<
Box
<dyn
Future
<Output =
Result
<
()
,
WechatyError
>> +
Send
+ 'async_trait>>
where Self:
Send
+ 'async_trait, 'life0: 'async_trait,
Source
§
fn
is_self
(&self) ->
bool
Check if current contact is the bot self.
Source
§
fn
send_text
<'life0, 'async_trait>( &'life0 mut self, text:
String
, ) ->
Pin
<
Box
<dyn
Future
<Output =
Result
<
Option
<
Message
<T>>,
WechatyError
>> +
Send
+ 'async_trait>>
where Self:
Send
+ 'async_trait, 'life0: 'async_trait,
Source
§
fn
send_contact
<'life0, 'async_trait>( &'life0 mut self, contact_id:
String
, ) ->
Pin
<
Box
<dyn
Future
<Output =
Result
<
Option
<
Message
<T>>,
WechatyError
>> +
Send
+ 'async_trait>>
where Self:
Send
+ 'async_trait, 'life0: 'async_trait,
Source
§
fn
send_file
<'life0, 'async_trait>( &'life0 mut self, file:
FileBox
, ) ->
Pin
<
Box
<dyn
Future
<Output =
Result
<
Option
<
Message
<T>>,
WechatyError
>> +
Send
+ 'async_trait>>
where Self:
Send
+ 'async_trait, 'life0: 'async_trait,
Source
§
fn
send_mini_program
<'life0, 'async_trait>( &'life0 mut self, mini_program:
MiniProgramPayload
, ) ->
Pin
<
Box
<dyn
Future
<Output =
Result
<
Option
<
Message
<T>>,
WechatyError
>> +
Send
+ 'async_trait>>
where Self:
Send
+ 'async_trait, 'life0: 'async_trait,
Source
§
fn
send_url
<'life0, 'async_trait>( &'life0 mut self, url:
UrlLinkPayload
, ) ->
Pin
<
Box
<dyn
Future
<Output =
Result
<
Option
<
Message
<T>>,
WechatyError
>> +
Send
+ 'async_trait>>
where Self:
Send
+ 'async_trait, 'life0: 'async_trait,