Contact

Type Alias Contact 

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,